From: <ow...@us...> - 2009-09-28 15:25:51
|
Revision: 3611 http://ipcop.svn.sourceforge.net/ipcop/?rev=3611&view=rev Author: owes Date: 2009-09-28 15:25:35 +0000 (Mon, 28 Sep 2009) Log Message: ----------- Increase sleeptime after an error in init (was 2 seconds, now 5 seconds). Start syslogd before udevd, so we can see udev errors on console 4. Add modprobe scsi_wait_scan workaround for possible race condition, not sure if it helps, but it won't hurt. Add udevadm settle timeout value. This should avoid udev staling completely and give out an error about event queue not yet finished. Modified Paths: -------------- ipcop/trunk/config/install/init Modified: ipcop/trunk/config/install/init =================================================================== --- ipcop/trunk/config/install/init 2009-09-27 16:15:23 UTC (rev 3610) +++ ipcop/trunk/config/install/init 2009-09-28 15:25:35 UTC (rev 3611) @@ -50,7 +50,7 @@ echo -e "${DONE}" else echo -e "${FAIL}" - sleep 2 + sleep 5 fi } @@ -116,7 +116,7 @@ echo -ne "Stopping udevd daemon ... " - killall udevd + killall -q udevd test_ok echo -ne "Stopping syslogd daemon ... " @@ -270,6 +270,10 @@ mount -t tmpfs tmpfs /dev -o mode=755 test_ok +echo -ne "Starting syslogd ... " +syslogd -O /dev/tty4 +test_ok + # This is important and it eliminates the need to use udevstart to discover new # devices after we've loaded a module. And since we're including LFS udev rules # in the initramfs, then pretty much any device is supported. @@ -283,13 +287,13 @@ test_ok echo -ne "Starting udevadm ... " udevadm trigger -udevadm settle +if [ -d /sys/bus/scsi ]; then + modprobe scsi_wait_scan + modprobe -r scsi_wait_scan +fi +udevadm settle --timeout=15 test_ok -echo -ne "Starting syslogd ... " -syslogd -O /dev/tty4 -test_ok - # We store all needed modules in /etc/modules so we don't hardcode any modules here for MODULE in `cat /etc/modules`; do echo -ne "Loading module ${MODULE} ... " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |