diff options
author | John Crispin <blogic@openwrt.org> | 2016-01-01 21:19:32 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-01-01 21:19:32 +0000 |
commit | 8ffae09db7b8825391302f745eb0728be412d6ff (patch) | |
tree | fa135abb228f1fe73d67e7e875c7787d85fd1d7a /target | |
parent | 17e9fc0f4e0bfb41aa96a794de3eba4900bcc942 (diff) | |
download | master-187ad058-8ffae09db7b8825391302f745eb0728be412d6ff.tar.gz master-187ad058-8ffae09db7b8825391302f745eb0728be412d6ff.tar.bz2 master-187ad058-8ffae09db7b8825391302f745eb0728be412d6ff.zip |
lantiq: match default xdsl mode and default wan interface
Signed-off-by: Mathias Kresin <openwrt@kresin.me>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48047 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/board.d/02_network | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index 8fc0835bdb..15b1f8c10f 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -16,6 +16,7 @@ encaps="llc" payload="bridged" lan_mac="" wan_mac="" +interface_wan="" board=$(lantiq_board_name) @@ -132,15 +133,18 @@ esac if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload" - ucidef_set_interface_wan "nas0" "pppoe" fi if [ -n "$(grep "system type.*: VR9" /proc/cpuinfo)" ]; then + interface_wan="ptm0" ucidef_add_vdsl_modem "$annex" "/lib/firmware/vdsl.bin" "av" "ptm" else + interface_wan="nas0" ucidef_add_adsl_modem "$annex" "/lib/firmware/adsl.bin" fi +ucidef_set_interface_wan "$interface_wan" "pppoe" + [ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan "$lan_mac" [ -n "$wan_mac" ] && ucidef_set_interface_macaddr wan "$wan_mac" |