Proper random MAC workaround for affected boards. Tested on Friendlyelec Nanopc T4

This commit is contained in:
Igor Pecovnik 2018-10-10 17:30:07 +02:00
parent f07ddda5fc
commit 6fbb6b8777
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ get_random_mac
uuid=$(nmcli -f UUID,DEVICE,TYPE connection show --active | grep ethernet | awk '{print $1}' | head -1)
if [[ -n $uuid ]]; then
nmcli connection modify $uuid ethernet.cloned-mac-address $MACADDR
nmcli connection modify $uuid -ethernet.mac-address ""
nmcli connection down $uuid >/dev/null 2>&1
nmcli connection up $uuid >/dev/null 2>&1
return 0

2
packages/bsp/common/usr/lib/armbian/armbian-firstrun Executable file → Normal file
View File

@ -100,7 +100,7 @@ case "$1" in
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
systemctl restart systemd-networkd
;;
rockchip|s5p6818|odroidc1)
rockchip|rk3399|rockchip64|s5p6818|odroidc1)
set_fixed_mac
;;
*)