The goal is to set the WAN MAC address to the one on the
sticker on the bottom of the unit. Currently it is not
used at all. But some users expect the WAN interface to
have the MAC address that is written on the sticker.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38091
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
;;
-dir-825-c1 |\
+dir-825-c1)
+ local mac
+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
+ ucidef_add_switch_vlan "switch0" "2" "0t 5"
+ mac=$(mtd_get_mac_ascii nvram "^wan_mac")
+ [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac"
+ ;;
+
dir-835-a1 |\
wndr4300)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"