Proper random MAC workaround for affected boards. Tested on Friendlyelec Nanopc T4
This commit is contained in:
parent
f07ddda5fc
commit
6fbb6b8777
@ -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
2
packages/bsp/common/usr/lib/armbian/armbian-firstrun
Executable file → Normal 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
|
||||
;;
|
||||
*)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user