瀏覽代碼

Install hdparm for benchmarks

Bob Mottram 7 年之前
父節點
當前提交
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
     chroot "$rootdir" apt-get -yq dist-upgrade
1715
     chroot "$rootdir" apt-get -yq dist-upgrade
1716
     chroot "$rootdir" apt-get -yq install ca-certificates
1716
     chroot "$rootdir" apt-get -yq install ca-certificates
1717
     chroot "$rootdir" apt-get -yq install apt-utils
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
     if [[ "$ARCHITECTURE" == 'amd64' ]]; then
1720
     if [[ "$ARCHITECTURE" == 'amd64' ]]; then
1721
         chroot "$rootdir" apt-get -yq install linux-image-amd64
1721
         chroot "$rootdir" apt-get -yq install linux-image-amd64

+ 3
- 0
src/freedombone-utils-setup 查看文件

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