slitaz-boot-scripts rev 143
-4 sec for boot time ans less Kernel messages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 08 00:13:04 2009 +0100 (2009-03-08) |
parents | 828111de7082 |
children | 7d89350f47ed |
files | etc/init.d/rcS |
line diff
1.1 --- a/etc/init.d/rcS Fri Feb 27 19:58:18 2009 +0100 1.2 +++ b/etc/init.d/rcS Sun Mar 08 00:13:04 2009 +0100 1.3 @@ -10,14 +10,12 @@ 1.4 1.5 if [ "$1" != "logged" ]; then #logged 1.6 1.7 -# Start by sleeping a bit. 1.8 echo "Processing /etc/init.d/rcS... " 1.9 -sleep 1 1.10 1.11 # Mount /proc. 1.12 echo -n "Mounting proc filesystem... " 1.13 /bin/mount proc 1.14 -status && sleep 1 1.15 +status 1.16 1.17 # Before mounting filesystems we check fs specified in the file 1.18 # /etc/rcS.conf and variable $CHECK_FS. 1.19 @@ -27,7 +25,6 @@ 1.20 do 1.21 echo "Checking filesystem on : $i" 1.22 /sbin/e2fsck -p $i 1.23 - sleep 2 1.24 done 1.25 fi 1.26 1.27 @@ -44,6 +41,12 @@ 1.28 echo -n "Starting udev daemon..." 1.29 /sbin/udevd --daemon 1.30 status 1.31 + echo -n "Udevadm requesting events from the Kernel..." 1.32 + udevadm trigger 1.33 + status 1.34 + echo -n "Udevadm waiting for the event queu to finish..." 1.35 + udevadm settle 1.36 + status 1.37 echo "/sbin/udevd" > /proc/sys/kernel/hotplug 1.38 fi 1.39 1.40 @@ -53,9 +56,6 @@ 1.41 1.42 else #logged 1.43 1.44 -# Create missing devices 1.45 -mdev -s 2> /dev/null 1.46 - 1.47 # Create /dev/cdrom if needed (symlink does not exist on LiveCD). 1.48 # Also add /dev/cdrom to fstab if entry does not exist. 1.49 # 1.50 @@ -172,6 +172,9 @@ 1.51 done 1.52 fi 1.53 1.54 +# Be quit on configuration to avoid message overwriting ncrurses dialog 1.55 +echo "0 0 0 0" > /proc/sys/kernel/printk 1.56 + 1.57 # Start all scripts specified with $RUN_SCRIPTS. 1.58 echo "Executing all initialization scripts..." 1.59 for script in $RUN_SCRIPTS 1.60 @@ -194,6 +197,9 @@ 1.61 fi 1.62 done 1.63 1.64 +# Back to a verbose mode. 1.65 +echo "7 4 1 7" > /proc/sys/kernel/printk 1.66 + 1.67 # Reset screen and display a bold message. 1.68 if [ -n "$MESSAGE" ]; then 1.69 /usr/bin/reset