[OpenWrt-Devel] [PATCH] lantiq: match default xdsl mode and default wan interface
Mathias Kresin
openwrt at kresin.me
Tue Dec 29 16:08:24 EST 2015
Signed-off-by: Mathias Kresin <openwrt at kresin.me>
---
target/linux/lantiq/base-files/etc/board.d/02_network | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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"
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list