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