tags 901358 patch
quit

Need to attach the patch...


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         [email protected]  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445


--- ups-monitor.dpkg-new	2016-07-16 08:19:48.000000000 -0700
+++ ups-monitor	2017-10-25 12:05:43.462235341 -0700
@@ -20,7 +20,10 @@
 
 case "$1" in
 	poweroff | killpower)
-		if [ -f /etc/apcupsd/powerfail ]; then
+		faildir="$(grep -e^PWRFAILDIR /etc/apcupsd/apcupsd.conf)"
+		faildir="${faildir#PWRFAILDIR }"
+
+		if [ -f "${faildir:=/etc/apcupsd}/powerfail" ]; then
 			echo ""
 			echo -n "apcupsd: Ordering UPS to kill power... "
 			/etc/apcupsd/apccontrol killpower

Reply via email to