]>
Commit | Line | Data |
---|---|---|
cd1a2927 | 1 | #!/bin/sh |
de297ec3 MT |
2 | # Clear screen |
3 | /bin/clear | |
4 | ||
cd1a2927 | 5 | echo "Shutting down..." |
de297ec3 | 6 | echo "Sending all processes the TERM signal..." |
3d6e1202 | 7 | /bin/killall5 -15 |
cd1a2927 MT |
8 | sleep 3 |
9 | echo "Sending all processes the KILL signal..." | |
3d6e1202 | 10 | /bin/killall5 -9 |
cd1a2927 | 11 | sleep 3 |
3d6e1202 MT |
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 | |
cd1a2927 | 19 | echo "Unmounting root" |
3d6e1202 MT |
20 | /bin/mount -n -o remount,ro / |
21 | /bin/reboot |