diff options
Diffstat (limited to 'target/linux/ramips/base-files/lib/preinit/06_set_iface_mac')
-rw-r--r-- | target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index 6d3dd58c06..fcfb86bd59 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -27,7 +27,7 @@ preinit_set_mac_address() { rt-n56u |\ sl-r7205) mac=$(mtd_get_mac_binary factory 4) - mac=$(maccalc or "$mac" "02:00:00:00:00:00") + mac=$(macaddr_setbit_la "$mac") ifconfig eth0 hw ether $mac 2>/dev/null ;; dir-300-b1 |\ @@ -38,7 +38,7 @@ preinit_set_mac_address() { ;; dir-645) mac=$(mtd_get_mac_ascii nvram lanmac) - mac=$(maccalc or "$mac" "02:00:00:00:00:00") + mac=$(macaddr_setbit_la "$mac") ifconfig eth0 hw ether $mac 2>/dev/null ;; dap-1350) |