slitaz-boot-scripts rev 179

rcS: may load USB device by UUID or LABEL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 15 20:22:14 2009 +0200 (2009-09-15)
parents de7ac3132d01
children 75125fb17674
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Thu Sep 03 23:42:00 2009 +0200
     1.2 +++ b/etc/init.d/rcS	Tue Sep 15 20:22:14 2009 +0200
     1.3 @@ -153,7 +153,7 @@
     1.4  	SCRIPT=${CONFIG#*,}
     1.5  	echo "Probing $DEVICE... "
     1.6  	if ! /bin/mount -r $DEVICE /mnt; then
     1.7 -		if echo $DEVICE | grep -q "/dev/sd"; then
     1.8 +		if echo $DEVICE | grep -Eq "/dev/sd|UUID=|LABEL="; then
     1.9  			USBDELAY=`cat /sys/module/usb_storage/parameters/delay_use`
    1.10  			USBDELAY=$((1+$USBDELAY))
    1.11  			echo "$DEVICE is potentially a USB device: sleep for $USBDELAY seconds"