Pārlūkot izejas kodu

Install benchmarking command if needed

Bob Mottram 7 gadus atpakaļ
vecāks
revīzija
267bb7036f
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6
    0
      src/freedombone-controlpanel

+ 6
- 0
src/freedombone-controlpanel Parādīt failu

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