]> git.pld-linux.org Git - packages/apcupsd.git/blobdiff - shutdown.patch
add fedora patches; including systemd support
[packages/apcupsd.git] / shutdown.patch
diff --git a/shutdown.patch b/shutdown.patch
new file mode 100644 (file)
index 0000000..9cfb595
--- /dev/null
@@ -0,0 +1,14 @@
+https://bugzilla.redhat.com/show_bug.cgi?id=348701
+
+diff -up apcupsd-3.14.4/platforms/apccontrol.in.shutdown apcupsd-3.14.4/platforms/apccontrol.in
+--- apcupsd-3.14.4/platforms/apccontrol.in.shutdown    2008-05-28 09:15:47.000000000 +0200
++++ apcupsd-3.14.4/platforms/apccontrol.in     2008-05-28 09:16:04.000000000 +0200
+@@ -104,7 +104,7 @@ case "$1" in
+     ;;
+     doshutdown)
+       echo "UPS ${2} initiated Shutdown Sequence" | ${WALL}
+-      ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
++      ${SHUTDOWN} -h -H now "apcupsd UPS ${2} initiated shutdown"
+     ;;
+     annoyme)
+       echo "Power problems with UPS ${2}. Please logoff." | ${WALL}
This page took 0.756894 seconds and 4 git commands to generate.