]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # Clear screen | |
3 | sleep 60 | |
4 | /bin/clear | |
5 | ||
6 | echo "Shutting down..." | |
7 | echo "Sending all processes the TERM signal..." | |
8 | /bin/killall5 -15 | |
9 | sleep 3 | |
10 | echo "Sending all processes the KILL signal..." | |
11 | /bin/killall5 -9 | |
12 | sleep 3 | |
13 | echo "Unmounting filesystems" | |
14 | /bin/umount /tmp | |
15 | /bin/umount /sys | |
16 | /bin/umount /dev/pts | |
17 | /bin/umount /dev | |
18 | /bin/umount /root | |
19 | /bin/umount /proc | |
20 | echo "Unmounting root" | |
21 | /bin/mount -n -o remount,ro / | |
22 | /bin/reboot |