瀏覽代碼

Install hdparm for benchmarks

Bob Mottram 6 年之前
父節點
當前提交
f33d4f17de
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. 1
    1
      src/freedombone-image-customise
  2. 3
    0
      src/freedombone-utils-setup

+ 1
- 1
src/freedombone-image-customise 查看文件

@@ -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 查看文件

@@ -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