summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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