]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/rc.d/rc.halt
7dd33567bce82ca36e1b7578edc2eae1ab47bd21
3 # rc.halt for ipfire 2006
10 echo "Usage: progressbar {progress}"
13 echo "show $(( 65534 * $1 / 9 ))" > /proc
/splash
17 echo "silent" > /proc
/splash
19 echo "Stopping the RED interface..."
21 /etc
/rc.d
/rc.red stop
2>/dev
/null
22 /etc
/rc.d
/rc.red
clear 2>/dev
/null
24 echo "Shutting down..."
28 echo "Saving the clock"
30 /sbin
/hwclock --systohc
32 echo "Sending all processes the TERM signal..."
37 echo "Sending all processes the KILL signal..."
42 echo "Turning off swap"
46 echo "Unmounting others"
50 echo "Unmounting root"
52 mount
-n -o remount
,ro
/
54 # Send nice shutdown beep now
56 /usr
/bin
/beep
-l 75 -f 3000
57 /usr
/bin
/beep
-l 75 -f 2000
58 /usr
/bin
/beep
-l 75 -f 1000
59 /usr
/bin
/beep
-l 75 -f 500
61 if [ "$1" = "halt" ]; then