Commit 6b45ed7e authored by Dan Reading's avatar Dan Reading
Browse files

we have disks smaller then 16Gb, so lower threshold for claiming it as USB drive

parent 64adc38b
...@@ -154,7 +154,7 @@ main() { ...@@ -154,7 +154,7 @@ main() {
case $i in case $i in
$rspeed_val ) $rspeed_val )
# check the size, if small then might be a USB drive # check the size, if small then might be a USB drive
if [ ${d[$size_val]} -gt 16 ] ; then if [ ${d[$size_val]} -gt 8 ] ; then
d[$rspeed_val]=$(getrspeed ${drive[$idx]}) d[$rspeed_val]=$(getrspeed ${drive[$idx]})
else else
d[$rspeed_val]=0 d[$rspeed_val]=0
...@@ -163,7 +163,7 @@ main() { ...@@ -163,7 +163,7 @@ main() {
fi fi
;; ;;
$wspeed_val ) $wspeed_val )
if [ ${d[$size_val]} -gt 16 ] ; then if [ ${d[$size_val]} -gt 8 ] ; then
d[$wspeed_val]=$(getwspeed ${drive[$idx]}) d[$wspeed_val]=$(getwspeed ${drive[$idx]})
else else
d[$wspeed_val]=0 d[$wspeed_val]=0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment