diff --git a/scripts/armhwinfo b/scripts/armhwinfo index 6a96a21806..b474a068b4 100644 --- a/scripts/armhwinfo +++ b/scripts/armhwinfo @@ -254,10 +254,32 @@ EOT chmod +x /etc/update-motd.d/90-warning } # show_motd_warning +check_sd_card_speed() { + # function that checks on 3rd boot whether firstrun script made a quick + # benchmark when a SD card with 4GB or less capacity has been detected + # and displays a warning when random I/O is below some tresholds. + RebootCount=$(grep -c '^### df:' /var/log/armhwinfo.log) + if [ ${RebootCount} -eq 2 ]; then + # check whether iozone data has been collected + IozoneResults="$(awk -F" " '/^### quick iozone test/ {print $10"\t"$11}'