Browse Source

Drive logic when testing performance

Bob Mottram 7 years ago
parent
commit
26b7ece1a3
1 changed files with 6 additions and 2 deletions
  1. 6
    2
      src/freedombone-controlpanel

+ 6
- 2
src/freedombone-controlpanel View File

1811
     fi
1811
     fi
1812
 
1812
 
1813
     test_drive=/dev/sda1
1813
     test_drive=/dev/sda1
1814
-    if ls /dev/mmcblk0p2; then
1815
-        test_drive=/dev/mmcblk0p2
1814
+    if ! ls $test_drive; then
1815
+        if ls /dev/mmcblk0p2; then
1816
+            test_drive=/dev/mmcblk0p2
1817
+        else
1818
+            return
1819
+        fi
1816
     fi
1820
     fi
1817
     clear
1821
     clear
1818
     echo ''
1822
     echo ''