]>
git.ipfire.org Git - people/trikolon/ipfire-2.x.git/blob - src/rc.d/rc.halt
3 # rc.halt for ipfire 2006
10 echo "Usage: progressbar {progress}"
13 if [ -e /proc
/splash
]; then
14 echo "show $(( 65534 * $1 / 9 ))" > /proc
/splash
19 if [ -e /proc
/splash
]; then
20 echo "silent" > /proc
/splash
23 echo "Stopping the RED interface..."
25 /etc
/rc.d
/rc.red stop
2>/dev
/null
26 /etc
/rc.d
/rc.red
clear 2>/dev
/null
28 echo "Shutting down..."
32 echo "Saving the clock"
34 /sbin
/hwclock --systohc
36 echo "Sending all processes the TERM signal..."
41 echo "Sending all processes the KILL signal..."
46 echo "Turning off swap"
50 echo "Unmounting others"
54 echo "Unmounting root"
56 mount
-n -o remount
,ro
/
58 # Send nice shutdown beep now
60 /usr
/bin
/beep
-l 75 -f 3000
61 /usr
/bin
/beep
-l 75 -f 2000
62 /usr
/bin
/beep
-l 75 -f 1000
63 /usr
/bin
/beep
-l 75 -f 500
65 if [ "$1" = "halt" ]; then