3 # halt Execute the halt command.
5 # Version: @(#)halt 2.84-2 07-Jan-2002 miquels@cistron.nl
8 PATH=/sbin:/bin:/usr/sbin:/usr/bin
10 # See if we need to cut the power.
11 if test -x /etc/init.d/ups-monitor
13 /etc/init.d/ups-monitor poweroff
16 # Don't shut down drives if we're using RAID.
18 if grep -qs '^md.*active' /proc/mdstat
23 showiframe /usr/share/switchoff.mvi
25 /usr/bin/turnoff_power
27 halt -d -f -i -p $hddown