summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-01-01 21:19:32 +0000
committerJohn Crispin <john@openwrt.org>2016-01-01 21:19:32 +0000
commit6f95d749d6a5c9cce47a14a926a378bc7621a049 (patch)
treef5ffd5b00ae63c8dba3d311dfc8a4c2e0b4ef481
parenta9896bf1064840747ca004c1ed777b6f23e0da9e (diff)
downloadmtk-20170518-6f95d749d6a5c9cce47a14a926a378bc7621a049.zip
mtk-20170518-6f95d749d6a5c9cce47a14a926a378bc7621a049.tar.gz
mtk-20170518-6f95d749d6a5c9cce47a14a926a378bc7621a049.tar.bz2
lantiq: match default xdsl mode and default wan interface
Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48047
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network6
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 8fc0835..15b1f8c 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"