diff options
| author | Michael Mason <ms13sp@gmail.com> | 2009-10-28 11:14:28 +0000 |
|---|---|---|
| committer | Michael Mason <ms13sp@gmail.com> | 2009-10-28 11:14:28 +0000 |
| commit | 86ab49bf71dfd4dda5329a64f4e458e92f240edd (patch) | |
| tree | cc85fc098301719fb5cdd29ffebff0c667eb300b /testing/apcupsd/apcupsd-alpine.patch | |
| parent | d4f48422585b6407b3cbf462933691a7d13ad468 (diff) | |
| parent | f881839e00a6387bf00dc5c48ad123e723ee7657 (diff) | |
| download | aports-86ab49bf71dfd4dda5329a64f4e458e92f240edd.tar.bz2 aports-86ab49bf71dfd4dda5329a64f4e458e92f240edd.tar.xz | |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/apcupsd/apcupsd-alpine.patch')
| -rw-r--r-- | testing/apcupsd/apcupsd-alpine.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/testing/apcupsd/apcupsd-alpine.patch b/testing/apcupsd/apcupsd-alpine.patch deleted file mode 100644 index 3f5c6965b7..0000000000 --- a/testing/apcupsd/apcupsd-alpine.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- 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 @@ - - APCPID=@PIDDIR@/apcupsd.pid - APCUPSD=@sbindir@/apcupsd --SHUTDOWN=@SHUTDOWN@ -+POWEROFF=/sbin/poweroff -+REBOOT=/sbin/reboot - SCRIPTSHELL=@SCRIPTSHELL@ - SCRIPTDIR=@sysconfdir@ --WALL=wall -+WALL=_wall - -+_wall() { -+ 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 @@ - ;; - doreboot) - echo "UPS ${2} initiating Reboot Sequence" | ${WALL} -- ${SHUTDOWN} -r now "apcupsd UPS ${2} initiated reboot" -+ echo "apcupsd UPS ${2} initiated reboot" | ${WALL} -+ $REBOOT - ;; - doshutdown) - echo "UPS ${2} initiated Shutdown Sequence" | ${WALL} -- ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown" -+ echo "apcupsd UPS ${2} initiated shutdown" | ${WALL} -+ $POWEROFF - ;; - annoyme) - echo "Power problems with UPS ${2}. Please logoff." | ${WALL} |
