slitaz-boot-scripts rev 227
Fix: some hardware needs 1sec more to detect USB devices
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Wed Feb 02 00:03:01 2011 +0100 (2011-02-02) |
parents | 7335644645cf |
children | fcdf41a689c8 |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Sun Jan 23 00:59:18 2011 +0000 1.2 +++ b/etc/init.d/bootopts.sh Wed Feb 02 00:03:01 2011 +0100 1.3 @@ -93,7 +93,7 @@ 1.4 [ "$DEVICE" = "usb" ] && DEVICE=sda1 1.5 echo "Home has been specified to $DEVICE..." 1.6 USBDELAY=`cat /sys/module/usb_storage/parameters/delay_use` 1.7 - USBDELAY=$((1+$USBDELAY)) 1.8 + USBDELAY=$((2+$USBDELAY)) 1.9 echo "Sleeping $USBDELAY s to let the kernel detect the device... " 1.10 sleep $USBDELAY 1.11 USER=`cat /etc/passwd | grep 1000 | cut -d ":" -f 1`