summaryrefslogtreecommitdiff
path: root/system/apcupsd/patches/nitpicky-fixes-to-init-script.diff
diff options
context:
space:
mode:
Diffstat (limited to 'system/apcupsd/patches/nitpicky-fixes-to-init-script.diff')
-rw-r--r--system/apcupsd/patches/nitpicky-fixes-to-init-script.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/system/apcupsd/patches/nitpicky-fixes-to-init-script.diff b/system/apcupsd/patches/nitpicky-fixes-to-init-script.diff
new file mode 100644
index 0000000000..30f901235e
--- /dev/null
+++ b/system/apcupsd/patches/nitpicky-fixes-to-init-script.diff
@@ -0,0 +1,29 @@
+diff -Nur apcupsd-3.14.12.orig/platforms/slackware/apcupsd.in apcupsd-3.14.12/platforms/slackware/apcupsd.in
+--- apcupsd-3.14.12.orig/platforms/slackware/apcupsd.in 2014-04-01 13:54:37.822360814 -0500
++++ apcupsd-3.14.12/platforms/slackware/apcupsd.in 2014-04-01 13:56:22.722239781 -0500
+@@ -9,14 +9,14 @@
+ APCPID=@PIDDIR@/apcupsd.pid
+ DISTVER="@DISTVER@"
+
+-return=" Done."
++return=""
+
+
+ case "$1" in
+ start)
+ rm -f @PWRFAILDIR@/powerfail
+ rm -f @nologdir@/nologin
+- echo -n "Starting apcupsd power management.."
++ echo -n "Starting apcupsd power management: /sbin/apcupsd"
+ if [ -f ${APCPID} ]; then
+ return=" Already running."
+ else
+@@ -30,7 +30,7 @@
+ stop)
+ echo -n "Stopping apcupsd power management.."
+ if [ -f ${APCPID} ]; then
+- THEPID=`cat ${APCPID}`
++ THEPID=$(cat ${APCPID})
+ kill ${THEPID} || return=" Failed."
+ rm -f ${APCPID}
+ else