Install benchmarking command if needed

This commit is contained in:
Bob Mottram 2018-04-21 19:14:13 +01:00
parent b7bbcea189
commit 267bb7036f
1 changed files with 6 additions and 0 deletions

View File

@ -1805,6 +1805,12 @@ function wifi_enable {
function performance_benchmarks {
clear
if [ ! -f /sbin/hdparm ]; then
apt-get -yq install hdparm
clear
fi
test_drive=/dev/sda1
if [ -f /dev/mmcblk0 ]; then
test_drive=/dev/mmcblk0