소스 검색

Install benchmarking command if needed

Bob Mottram 7 년 전
부모
커밋
267bb7036f
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      src/freedombone-controlpanel

+ 6
- 0
src/freedombone-controlpanel 파일 보기

@@ -1805,6 +1805,12 @@ function wifi_enable {
1805 1805
 
1806 1806
 function performance_benchmarks {
1807 1807
     clear
1808
+
1809
+    if [ ! -f /sbin/hdparm ]; then
1810
+        apt-get -yq install hdparm
1811
+        clear
1812
+    fi
1813
+
1808 1814
     test_drive=/dev/sda1
1809 1815
     if [ -f /dev/mmcblk0 ]; then
1810 1816
         test_drive=/dev/mmcblk0