Browse Source

Install hdparm for benchmarks

Bob Mottram 6 years ago
parent
commit
f33d4f17de
2 changed files with 4 additions and 1 deletions
  1. 1
    1
      src/freedombone-image-customise
  2. 3
    0
      src/freedombone-utils-setup

+ 1
- 1
src/freedombone-image-customise View File

@@ -1715,7 +1715,7 @@ image_setup_utils() {
1715 1715
     chroot "$rootdir" apt-get -yq dist-upgrade
1716 1716
     chroot "$rootdir" apt-get -yq install ca-certificates
1717 1717
     chroot "$rootdir" apt-get -yq install apt-utils
1718
-    chroot "$rootdir" apt-get -yq install shellcheck
1718
+    chroot "$rootdir" apt-get -yq install shellcheck hdparm
1719 1719
 
1720 1720
     if [[ "$ARCHITECTURE" == 'amd64' ]]; then
1721 1721
         chroot "$rootdir" apt-get -yq install linux-image-amd64

+ 3
- 0
src/freedombone-utils-setup View File

@@ -796,6 +796,9 @@ function install_shellcheck {
796 796
 
797 797
 function microsd_card_optimisations {
798 798
     # These values can improve performance on microSD cards
799
+
800
+    apt-get -yq install hdparm
801
+
799 802
     printf '#!/bin/bash\n' > /usr/bin/enable_optimisations
800 803
 
801 804
     if [ -f /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then