summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-07-29 12:06:23 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:48:05 +0100
commit16a17528d1e6f5c9ee0ec5cae923195cdef91c80 (patch)
treed5be034fba1c42eaf71c66910c5a112644e2e593
parent12439ffcd297f68f28cc2f52562b2916bb2021a1 (diff)
downloadlive-boot-16a17528d1e6f5c9ee0ec5cae923195cdef91c80.tar.gz
live-boot-16a17528d1e6f5c9ee0ec5cae923195cdef91c80.zip
Also updating USB device detection in initramfs script for linux 2.6.29 and newer.
-rwxr-xr-xscripts/live3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/live b/scripts/live
index 89fcd50..f33ece7 100755
--- a/scripts/live
+++ b/scripts/live
@@ -1411,7 +1411,8 @@ find_livefs ()
do
if [ "$(cat ${sysblock}/removable)" = "1" ]
then
- if readlink ${sysblock}/device | grep -q usb
+ if readlink ${sysblock} | grep -q usb ||
+ readlink ${sysblock}/device | grep -q usb # linux < 2.6.29
then
for dev in $(subdevices "${sysblock}")
do