diff options
author | John Crispin <blogic@openwrt.org> | 2013-11-07 12:46:24 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-11-07 12:46:24 +0000 |
commit | d687cbcb1e21a8eef493366b60815072028e5628 (patch) | |
tree | 8234569f496200e2c02b5fa720b3a5d7b56c09ee /target/linux/lantiq/base-files/etc/uci-defaults | |
parent | 6ab2aa08f127d1ccb29e63e8d09770741e056bd5 (diff) | |
download | master-187ad058-d687cbcb1e21a8eef493366b60815072028e5628.tar.gz master-187ad058-d687cbcb1e21a8eef493366b60815072028e5628.tar.bz2 master-187ad058-d687cbcb1e21a8eef493366b60815072028e5628.zip |
lantiq: fix TDW8970 lan/wan mac
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38677 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/lantiq/base-files/etc/uci-defaults/02_network | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network index 86a47b4a07..ed556fca19 100644 --- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network +++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network @@ -40,6 +40,8 @@ vpi=1 vci=32 encaps="llc" payload="bridged" +lan_mac="" +wan_mac="" board=$(lantiq_board_id) @@ -97,10 +99,16 @@ P2601HNFX) ucidef_add_switch "switch0" "1" "1" ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" ;; + +TDW8970) + lan_mac=$(mtd_get_mac_binary boardconfig 61696) + wan_mac=$(macaddr_add "$lan_mac" 1) + ;; esac [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload" - +[ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan $lan_mac +[ -n "$wan_mac" ] && ucidef_set_interface_macaddr wan $wan_mac uci commit network |