]> git.ipfire.org Git - ipfire-3.x.git/blob - src/initscripts/core/shutdown.conf
Updated kernel to 2.6.31.
[ipfire-3.x.git] / src / initscripts / core / shutdown.conf
1 description "Shutdown or reboot the system"
2 author "IPFire Team"
3
4 start on shutdown or reboot
5
6 console output
7
8 script
9 # Exterminate any lil' process that managed to evade my merciless
10 # terminating.
11 killall5 -15 || true
12 sleep 5
13 killall5 -9 || true
14
15 mount -n -o remount,ro / || true
16
17 # The UPSTART_EVENTS variable contains the event that has been called.
18 # The script use it to perform the requested action.
19 if [ "${UPSTART_EVENTS}" = "reboot" ]; then
20 reboot -pf
21 else
22 halt -pf
23 fi
24 end script