# HG changeset patch # User Pascal Bellard # Date 1253038934 -7200 # Node ID 317bbc1019510b07f66d5efb01da7d6a1ec74be7 # Parent de7ac3132d0109207981c76a042d458d6e62ee1b rcS: may load USB device by UUID or LABEL diff -r de7ac3132d01 -r 317bbc101951 etc/init.d/rcS --- a/etc/init.d/rcS Thu Sep 03 23:42:00 2009 +0200 +++ b/etc/init.d/rcS Tue Sep 15 20:22:14 2009 +0200 @@ -153,7 +153,7 @@ SCRIPT=${CONFIG#*,} echo "Probing $DEVICE... " if ! /bin/mount -r $DEVICE /mnt; then - if echo $DEVICE | grep -q "/dev/sd"; then + if echo $DEVICE | grep -Eq "/dev/sd|UUID=|LABEL="; then USBDELAY=`cat /sys/module/usb_storage/parameters/delay_use` USBDELAY=$((1+$USBDELAY)) echo "$DEVICE is potentially a USB device: sleep for $USBDELAY seconds"