diff options
Diffstat (limited to 'init.d/halt.sh')
-rwxr-xr-x | init.d/halt.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/init.d/halt.sh b/init.d/halt.sh index aa73a6d0..a439b834 100755 --- a/init.d/halt.sh +++ b/init.d/halt.sh @@ -1,5 +1,4 @@ #!/bin/sh -# Copyright 1999-2007 Gentoo Foundation # Copyright 2007 Roy Marples # All rights reserved @@ -109,22 +108,6 @@ if [ "${RC_UNAME}" = "Linux" ]; then unmounted=$? fi -# This UPS code should be moved to out of here and to an addon -if [ -f /etc/killpower ]; then - UPS_CTL=/sbin/upsdrvctl - UPS_POWERDOWN="${UPS_CTL} shutdown" -elif [ -f /etc/apcupsd/powerfail ]; then - UPS_CTL=/etc/apcupsd/apccontrol - UPS_POWERDOWN="${UPS_CTL} killpower" -fi -if [ -x "${UPS_CTL}" ]; then - ewarn "Signalling ups driver(s) to kill the load!" - ${UPS_POWERDOWN} - ewarn "Halt system and wait for the UPS to kill our power" - halt -id - sleep 60 -fi - if [ ${unmounted} -ne 0 ]; then [ -x /sbin/sulogin ] && sulogin -t 10 /dev/console exit 1 |