]>
Commit | Line | Data |
---|---|---|
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 |