Am Sonntag, 10. April 2011 03:19:11 schrieb David Haller: Hallo,
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
# Systemzeit nach rtc schreiben /sbin/hwclock -w -u -f /dev/rtc
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
Hier kann das sleep weg.
OK
echo "umount ALL" umount -avl
Hier fehlt noch das eigentliche abschalten:
mount -no remount,ro / 2> /dev/null
An dieser Stelle bereits: No /proc/mounts
sync
Das sync kann weg, wenn 'halt' ohne '-n' ausgefuehrt wird.
exec /sbin/halt -d -f -n -h
exec /sbin/halt -f #[1]
***************************************** [1] halt aus busybox
halt -d SEC Delay interval -n Do not sync -f Force Ich danke Dir und wuensche einen schoenen Sonntag! MfG Th. Moritz -- To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming-de+help@opensuse.org