From 267bb7036f066a3733b5e4438ed5d1d09ddb4a72 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 21 Apr 2018 19:14:13 +0100 Subject: [PATCH] Install benchmarking command if needed --- src/freedombone-controlpanel | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 0c3f370e..27233885 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -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