Removing lenny legacy stuff from initscript.
authorDaniel Baumann <daniel@debian.org>
Mon, 6 Sep 2010 11:56:14 +0000 (13:56 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:59:20 +0000 (17:59 +0100)
debian/live-boot.init

index 548abca..03bc390 100644 (file)
@@ -83,8 +83,7 @@ device_is_USB_flash_drive()
        [ "$(expr substr ${DEVICE} 1 2)" != "sd" ] && return 1
 
        # check that the device is an USB device
-       if readlink /sys/block/${DEVICE} | grep -q usb ||
-          readlink /sys/block/${DEVICE}/device | grep -q usb # linux < 2.6.29
+       if readlink /sys/block/${DEVICE} | grep -q usb
        then
                return 0
        fi