Browse Source

Check for drive using ls

Bob Mottram 6 years ago
parent
commit
38c0fc7673
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-controlpanel

+ 1
- 1
src/freedombone-controlpanel View File

@@ -1812,7 +1812,7 @@ function performance_benchmarks {
1812 1812
     fi
1813 1813
 
1814 1814
     test_drive=/dev/sda1
1815
-    if [ -f /dev/mmcblk0p2 ]; then
1815
+    if ls /dev/mmcblk0p2; then
1816 1816
         test_drive=/dev/mmcblk0p2
1817 1817
     fi
1818 1818
     echo ''