summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/base-files/etc/board.d/02_network
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-02-17 22:04:12 +0100
committerMathias Kresin <dev@kresin.me>2017-02-18 16:52:05 +0100
commit6a6e3a4928010f7e9a04cf3b7f61ecc472df2273 (patch)
tree7a73c948a1340fbf68964c47e32ccbb7318836ed /target/linux/lantiq/base-files/etc/board.d/02_network
parentc5879b067680d7b02e365ea0cfd0324edf70425c (diff)
downloadmtk-20170518-6a6e3a4928010f7e9a04cf3b7f61ecc472df2273.zip
mtk-20170518-6a6e3a4928010f7e9a04cf3b7f61ecc472df2273.tar.gz
mtk-20170518-6a6e3a4928010f7e9a04cf3b7f61ecc472df2273.tar.bz2
lantiq: introduce lantiq_is_vdsl_system
Move the code to check if the current system is a system with vdsl support to a dedicate function to make it reusable. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/base-files/etc/board.d/02_network')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/board.d/02_network2
1 files changed, 1 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 6ab5cb9..41d6b7f 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -168,7 +168,7 @@ if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
fi
-if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
+if lantiq_is_vdsl_system; then
interface_wan="ptm0"
ucidef_add_vdsl_modem "$annex" "av" "ptm"
else