slitaz-boot-scripts rev 20
Modified rc.shutdown(killall5) + typo
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 14 10:21:08 2008 +0100 (2008-01-14) |
parents | 3659b58f2398 |
children | 3cebbdadf040 |
files | etc/init.d/rc.shutdown etc/init.d/rcS |
line diff
1.1 --- a/etc/init.d/rc.shutdown Mon Jan 14 10:17:11 2008 +0100 1.2 +++ b/etc/init.d/rc.shutdown Mon Jan 14 10:21:08 2008 +0100 1.3 @@ -32,7 +32,14 @@ 1.4 /sbin/swapoff -a 1.5 status && sleep 2 1.6 1.7 +# Kill all processes. 1.8 +echo -n "Killing all processes..." 1.9 +killall5 && sleep 2 1.10 +status 1.11 + 1.12 # Umount filesystems. 1.13 -echo -n "Unmounting all filesystems... " 1.14 -/bin/umount -a -r 1.15 -#status 1.16 +echo -n "Remonting rootfs read only..." 1.17 +mount -o remount,ro / 1.18 +status 1.19 +echo "Unmounting all filesystems... " 1.20 +/bin/umount -a
2.1 --- a/etc/init.d/rcS Mon Jan 14 10:17:11 2008 +0100 2.2 +++ b/etc/init.d/rcS Mon Jan 14 10:21:08 2008 +0100 2.3 @@ -50,7 +50,7 @@ 2.4 2.5 # Creat /dev/cdrom if needed (symlink does not exist on LiveCD). Chmod 2.6 # hack for Asunder and burnbox allowing all users to burn/rip CD/DVD. 2.7 -# Add also /dev/cdrom to fstab in entry dos not exist. 2.8 +# Add also /dev/cdrom to fstab if entry dos not exist. 2.9 # 2.10 DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3` 2.11 if [ ! "`readlink /dev/cdrom`" ]; then