diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-05-01 08:36:21 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-05-01 08:36:21 +0000 |
commit | 810f8987f0ce19a6703d1ed059d36cfa4217a08f (patch) | |
tree | d16dd2bba36104b0c77da5c8c793131617ce63d4 /main/apcupsd/apcupsd-alpine.patch | |
parent | 9a784d2c51d4796622fc4b9e5ce6a1c99510071c (diff) | |
download | aports-810f8987f0ce19a6703d1ed059d36cfa4217a08f.tar.bz2 aports-810f8987f0ce19a6703d1ed059d36cfa4217a08f.tar.xz |
main/apcupsd: upgrade to 3.14.12
Diffstat (limited to 'main/apcupsd/apcupsd-alpine.patch')
-rw-r--r-- | main/apcupsd/apcupsd-alpine.patch | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/main/apcupsd/apcupsd-alpine.patch b/main/apcupsd/apcupsd-alpine.patch index 3f5c6965b7..fb4412604b 100644 --- a/main/apcupsd/apcupsd-alpine.patch +++ b/main/apcupsd/apcupsd-alpine.patch @@ -1,6 +1,6 @@ ---- a/platforms/apccontrol.in Mon Oct 26 09:12:30 2009 -+++ b/platforms/apccontrol.in Mon Oct 26 09:36:47 2009 -@@ -20,11 +20,20 @@ +--- ./platforms/apccontrol.in.orig 2014-03-22 16:55:26.000000000 +0000 ++++ ./platforms/apccontrol.in 2014-05-01 08:35:12.652406970 +0000 +@@ -20,10 +20,19 @@ APCPID=@PIDDIR@/apcupsd.pid APCUPSD=@sbindir@/apcupsd @@ -11,19 +11,18 @@ SCRIPTDIR=@sysconfdir@ -WALL=wall +WALL=_wall - ++ +_wall() { -+ local i -+ local msg=$(cat) -+ for i in /dev/pts/*; do -+ [ -c "$i" ] && echo "$msg" > $i -+ done ++ local i ++ local msg=$(cat) ++ for i in /dev/pts/*; do ++ [ -c "$i" ] && echo "$msg" > $i ++ done +} -+ - # - # Concatenate all output from this script to the events file - # Note, the following kills the script in a power fail situation -@@ -100,11 +109,13 @@ + + export SYSADMIN=root + export APCUPSD_MAIL="@APCUPSD_MAIL@" +@@ -104,11 +113,13 @@ ;; doreboot) echo "UPS ${2} initiating Reboot Sequence" | ${WALL} |