# HG changeset patch # User Pascal Bellard # Date 1431442472 -7200 # Node ID 8d914318cb3a19d523d0c323e98c61eeed6cf0d2 # Parent 2874c858a6b2dccdd1bee4e5c57a987b987e3cd8 boot.cgi: fix usb key list diff -r 2874c858a6b2 -r 8d914318cb3a boot.cgi --- a/boot.cgi Tue May 12 16:26:58 2015 +0200 +++ b/boot.cgi Tue May 12 16:54:32 2015 +0200 @@ -439,6 +439,7 @@ grep -l 1 /sys/block/*/removable | \ sed 's|/sys/block/\(.*\)/removable|\1|' | while read dev; do grep -qs 1 /sys/block/$DEV/ro && continue + [ -d /sys/block/$DEV/device/scsi_disk ] || continue echo -n ""