8 # Short-Description: Execute the halt command.
12 PATH=/sbin:/bin:/usr/sbin:/usr/bin
14 # See if we need to cut the power.
15 if test -x /etc/init.d/ups-monitor
17 /etc/init.d/ups-monitor poweroff
20 # Don't shut down drives if we're using RAID.
22 if grep -qs '^md.*active' /proc/mdstat
27 /usr/bin/turnoff_power
29 halt -d -f -i -p $hddown