]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/install/halt
ecfe93c97451e3c2d4c93f56d52ad0ea3b60bcfa
[people/pmueller/ipfire-2.x.git] / config / install / halt
1 #!/bin/sh
2 echo "Shutting down..."
3 echo "Sending all processes the TERM signal..."
4 /bin/killall5 -15
5 sleep 3
6 echo "Sending all processes the KILL signal..."
7 /bin/killall5 -9
8 sleep 3
9 echo "Unmounting filesystems"
10 /bin/umount /tmp
11 /bin/umount /sys
12 /bin/umount /dev/pts
13 /bin/umount /dev
14 /bin/umount /root
15 /bin/umount /proc
16 echo "Unmounting root"
17 /bin/mount -n -o remount,ro /
18 /bin/reboot