1#see if this is a powerfail situation
2if [ -f @PWRFAILDIR@/powerfail ]; then
3        echo
4        echo "APCUPSD will power off the UPS"
5        echo
6        @sysconfdir@/apccontrol killpower
7        echo
8        echo "Please ensure that the UPS has powered off before rebooting"
9        echo "Otherwise, the UPS may cut the power during the reboot!!!"
10        echo
11        exit 0
12fi
13