tazpanel rev 491

boot.cgi: fix usb key list
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 12 16:54:32 2015 +0200 (2015-05-12)
parents 2874c858a6b2
children e6181f0521c8
files boot.cgi
line diff
     1.1 --- a/boot.cgi	Tue May 12 16:26:58 2015 +0200
     1.2 +++ b/boot.cgi	Tue May 12 16:54:32 2015 +0200
     1.3 @@ -439,6 +439,7 @@
     1.4  		grep -l 1 /sys/block/*/removable | \
     1.5  		sed 's|/sys/block/\(.*\)/removable|\1|' | while read dev; do
     1.6  			grep -qs 1 /sys/block/$DEV/ro && continue
     1.7 +			[ -d /sys/block/$DEV/device/scsi_disk ] || continue
     1.8  			echo -n "<option value=\"/dev/$dev\">/dev/$dev "
     1.9  			echo "$(blk2h < /sys/block/$dev/size) $(cat \
    1.10  				/sys/block/$i/device/model 2>/dev/null)</option>"