1 --- rc.6.orig Sat Sep 11 14:38:33 1999
2 +++ rc.6 Sun Feb 27 13:22:11 2000
7 + # This block was from the original Slackware distribution:
8 # See if this is a powerfail situation.
9 - if [ -f /etc/power_is_failing ]; then
10 - echo "Turning off UPS, bye."
13 + #if [ -f /etc/power_is_failing ]; then
14 + # echo "Turning off UPS, bye."
19 + # This block was added in by the apcupsd installation process. This
20 + # will cause the UPS to kill the power supply after a configurable number
21 + # of seconds (see the apcupsd.conf file). This is important for situations
22 + # where the mains power comes back before the UPS batteries are completely
24 + if [ -f @PWRFAILDIR@/powerfail ]; then
26 + echo "apcupsd will now power off the UPS"
28 + @sysconfdir@/apccontrol killpower
30 + echo "Please ensure that the UPS has powered off before rebooting."
31 + echo "Otherwise, the UPS may cut the power during the reboot."
33 + halt -f -p # power down the system if the hardware is capable
36 # Now halt (poweroff with APM kernels) or reboot.