]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/halt
2 ########################################################################
3 # Begin $rc_base/init.d/halt
5 # Description : Halt Script
7 # Authors : Gerard Beekmans - gerard@linuxfromscratch.org
13 ########################################################################
21 boot_mesg
"Remount root readonly..."
22 mount
-f -o remount
,ro
/ > /dev
/null
2>&1
25 boot_mesg
"Prepare for halt..."
28 #Disable all leds at shutdown
29 for led
in $
(ls /sys
/class
/leds
); do
30 echo "none" > /sys
/class
/leds
/$led/trigger
31 echo "0" > /sys
/class
/leds
/$led/brightness
42 # End $rc_base/init.d/halt