Schnellschuss shutdown
Thomas Moritz <[email protected]> Sat, 9 Apr 2011 10:40:54 +0200
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Hallo zusammen, ist das als 'shutdown.sh' OK, oder sollte ich dringend etwas aendern? Es ist wichtig, dass /dev/sda2 (vfat,rw) sauber rausgeschmissen wird. Das restliche System ist ro und damit sicher! ***************************************** #!/bin/sh echo "Sende TERM-Signal an alle Prozesse" /bin/killall5 -15 sleep 1 echo "Sende KILL-Signal an alle Prozesse" /bin/killall5 -9 echo "Sende SYNC" sync; sleep 1; sync echo "umount ALL" umount -avl ***************************************** MfG Th. Moritz