From 9f2403dffae514dca431828014a2dc9c9de4e61f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 14 Dec 2007 14:12:38 +0000 Subject: Remove Gentoo copyright from all files that I know I have written --- init.d/halt.sh | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'init.d/halt.sh') 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 -- cgit v1.2.3