Drive logic when testing performance

This commit is contained in:
Bob Mottram 2018-04-22 16:13:28 +01:00
parent 9a88f71564
commit 26b7ece1a3
1 changed files with 6 additions and 2 deletions

View File

@ -1811,8 +1811,12 @@ function performance_benchmarks {
fi
test_drive=/dev/sda1
if ls /dev/mmcblk0p2; then
test_drive=/dev/mmcblk0p2
if ! ls $test_drive; then
if ls /dev/mmcblk0p2; then
test_drive=/dev/mmcblk0p2
else
return
fi
fi
clear
echo ''