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