Displaying 1 result from an estimated 1 matches for "hddown".
2009 Jun 19
1
UPS does not want to power off itself
...fi
if (test -f /etc/killpower)
then
echo "Killing the power, bye!"
/sbin/upsdrvctl shutdown
sleep 120
fi
if [ "$INIT_HALT" = "POWEROFF" ] && [ -x /etc/init.d/ups-monitor ]
then
/etc/init.d/ups-monitor poweroff
fi
hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
hddown=""
fi
poweroff="-p"
if [ "$INIT_HALT" = "HALT" ]
then
poweroff=""
fi
netdown="-i"
if [ "$NETDOWN" = &...