target: replace remaining occurrences of ifconfig with ip
[openwrt/staging/rmilecki.git] / target / linux / apm821xx / base-files / lib / preinit / 05_set_iface_mac_apm821xx
index 1f8c1c29fbebaddd1724f2cfde1481627e507b42..5f92c01931b8d189efb5bbcc77476beded4c3da0 100644 (file)
@@ -5,7 +5,7 @@ preinit_set_mac_address() {
                meraki,mr24|\
                meraki,mx60)
                        mac_lan=$(mtd_get_mac_binary_ubi board-config 0x66)
-                       [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
+                       [ -n "$mac_lan" ] && ip link set eth0 address "$mac_lan"
                        ;;
        esac
 }