From 1632cf6905d71d386a2b4729595459da419d4793 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sun, 4 Aug 2024 12:11:22 +0200 Subject: [PATCH] Enable fixed MAC settings for Nanopi R6 series and supress iozone related error --- packages/bsp/common/usr/lib/armbian/armbian-firstrun | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-firstrun b/packages/bsp/common/usr/lib/armbian/armbian-firstrun index 6a6a55df9b..606341a69e 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-firstrun +++ b/packages/bsp/common/usr/lib/armbian/armbian-firstrun @@ -16,7 +16,9 @@ case "$1" in start) # Run a q&d benchmark to be able to identify cards way too slow easily + if command -v "iozone" > /dev/null 2>&1; then echo -e "\n### quick iozone test:$(cd /root; iozone -e -I -a -s 1M -r 4k -i 0 -i 1 -i 2 | grep '^ 1024' | sed 's/ 1024 //')" >> $Log + fi # Bluetooth tweaks case ${BOARD} in @@ -98,8 +100,10 @@ case "$1" in esac # varios temporary hardware workarounds - [[ $LINUXFAMILY == meson ]] && set_fixed_mac - [[ $LINUXFAMILY == meson64 ]] && set_fixed_mac + [[ "${LINUXFAMILY}" == meson ]] && set_fixed_mac + [[ "${LINUXFAMILY}" == meson64 ]] && set_fixed_mac + [[ "${BOARD}" == nanopi-r6* ]] && set_fixed_mac + systemctl disable armbian-firstrun exit 0 ;;