From f33d4f17def01422dda6700eeb4eac1888b8e94e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 21 Apr 2018 18:33:28 +0100 Subject: [PATCH] Install hdparm for benchmarks --- src/freedombone-image-customise | 2 +- src/freedombone-utils-setup | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index f34ccb26..fdd6233f 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1715,7 +1715,7 @@ image_setup_utils() { chroot "$rootdir" apt-get -yq dist-upgrade chroot "$rootdir" apt-get -yq install ca-certificates chroot "$rootdir" apt-get -yq install apt-utils - chroot "$rootdir" apt-get -yq install shellcheck + chroot "$rootdir" apt-get -yq install shellcheck hdparm if [[ "$ARCHITECTURE" == 'amd64' ]]; then chroot "$rootdir" apt-get -yq install linux-image-amd64 diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index f541b80e..dc1d2aa1 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -796,6 +796,9 @@ function install_shellcheck { function microsd_card_optimisations { # These values can improve performance on microSD cards + + apt-get -yq install hdparm + printf '#!/bin/bash\n' > /usr/bin/enable_optimisations if [ -f /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then