X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/64435afc83db0412d180ee6c9a0d177b3d45568f..5ad3941a703f9b864c479525ef4621310c463ab0:/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac 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 9a4d515b1..9f5c02446 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 @@ -10,6 +10,7 @@ preinit_set_mac_address() { case $(ramips_board_name) in bc2 |\ nw718 |\ + rt-n56u |\ esr-9753) mac=$(ramips_get_mac_binary factory 4) mac=$(maccalc or "$mac" "02:00:00:00:00:00") @@ -25,10 +26,15 @@ preinit_set_mac_address() { hw550-3g |\ nbg-419n |\ omni-emb |\ - w502u) + w502u |\ + wr6202) mac=$(ramips_get_mac_binary factory 40) ifconfig eth0 hw ether $mac 2>/dev/null ;; + wl341v3) + mac=$(ramips_get_mac_binary board-nvram 65440) + ifconfig eth0 hw ether $mac 2>/dev/null + ;; esac }