Enable fixed MAC settings for Nanopi R6 series and supress iozone related error

This commit is contained in:
Igor Pecovnik
2024-08-04 12:11:22 +02:00
committed by Igor
parent 2aff2c8e5c
commit 1632cf6905

View File

@@ -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
;;