diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index e2dd100d..e0677348 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1803,6 +1803,19 @@ function wifi_enable { "${PROJECT_NAME}-wifi" --disable $disable_wifi } +function performance_benchmarks { + clear + test_drive=/dev/sda1 + if [ -f /dev/mmcblk0 ]; then + test_drive=/dev/mmcblk0 + fi + echo '' + echo $"Testing read speed from drive $test_drive" + echo '' + hdparm -t $test_drive + any_key +} + function add_clacks { clacks= @@ -1929,8 +1942,9 @@ function menu_top_level { 12 $"Wifi menu" 13 $"Add Clacks" 14 $"Check for updates" - 15 $"Power off the system" - 16 $"Restart the system") + 15 $"Performance Benchmarks" + 16 $"Power off the system" + 17 $"Restart the system") # shellcheck disable=SC2068 selection=$(dialog --backtitle $"Freedombone Administrator Control Panel" --title $"Administrator Control Panel" --menu $"Choose an operation, or ESC to exit:" 24 60 24 "${W[@]}" 3>&2 2>&1 1>&3) @@ -1959,8 +1973,9 @@ function menu_top_level { 12) menu_wifi;; 13) add_clacks;; 14) check_for_updates;; - 15) shut_down_system;; - 16) restart_system;; + 15) performance_benchmarks;; + 16) shut_down_system;; + 17) restart_system;; esac done }