diff options
Diffstat (limited to 'system/apcupsd/create_lockdir_in_init_script.diff')
-rw-r--r-- | system/apcupsd/create_lockdir_in_init_script.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/system/apcupsd/create_lockdir_in_init_script.diff b/system/apcupsd/create_lockdir_in_init_script.diff new file mode 100644 index 0000000000..06d158fb91 --- /dev/null +++ b/system/apcupsd/create_lockdir_in_init_script.diff @@ -0,0 +1,11 @@ +diff -Nur apcupsd-3.14.10.orig/platforms/slackware/apcupsd.in apcupsd-3.14.10/platforms/slackware/apcupsd.in +--- apcupsd-3.14.10.orig/platforms/slackware/apcupsd.in 2005-03-03 11:18:09.000000000 -0600 ++++ apcupsd-3.14.10/platforms/slackware/apcupsd.in 2012-09-07 21:31:27.347857464 -0500 +@@ -20,6 +20,7 @@ + if [ -f ${APCPID} ]; then + return=" Already running." + else ++ mkdir -p @LOCKDIR@/subsys + @sbindir@/apcupsd && touch @LOCKDIR@/subsys/apcupsd \ + || return=" Failed." + fi |