aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/rt305x
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/rt305x')
-rwxr-xr-xtarget/linux/ramips/rt305x/base-files/etc/board.d/02_network7
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network
index 5c110b375e..de71dd6202 100755
--- a/target/linux/ramips/rt305x/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/rt305x/base-files/etc/board.d/02_network
@@ -242,10 +242,13 @@ ramips_setup_macs()
lan_mac=$(macaddr_setbit_la "$(cat /sys/class/net/eth0/address)")
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- dlink,dir-615-d|\
+ dlink,dir-615-d)
+ wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 1)
+ label_mac=$(mtd_get_mac_binary devdata 0x4004)
+ ;;
dlink,dir-615-h1)
wan_mac=$(macaddr_add "$(cat /sys/class/net/eth0/address)" 1)
- label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
+ label_mac=$(mtd_get_mac_binary factory 0x4)
;;
poray,m3|\
poray,m4-4m|\