[packages/nut] - use upsdrvctl directly in poweroff-ups sript

baggins baggins at pld-linux.org
Fri Aug 16 21:37:07 CEST 2013


commit 0443ac0cea3dd36eb1664f797648966e571452da
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Aug 16 21:36:50 2013 +0200

    - use upsdrvctl directly in poweroff-ups sript

 nut.spec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/nut.spec b/nut.spec
index 86bf1ea..f3174b9 100644
--- a/nut.spec
+++ b/nut.spec
@@ -257,7 +257,9 @@ done
 
 cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF
 #!/bin/sh
-/etc/rc.d/init.d/ups powerdown
+echo "Switching the power off"
+/lib/nut/upsdrvctl shutdown
+sleep 60
 EOF
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nut.git/commitdiff/0443ac0cea3dd36eb1664f797648966e571452da



More information about the pld-cvs-commit mailing list