From 044a4eafd5e1a06eedee700bb4191f02674a9da1 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Fri, 17 Feb 2017 22:04:12 +0100 Subject: 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 --- target/linux/lantiq/base-files/etc/board.d/02_network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/lantiq/base-files/etc') 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 6ab5cb979e..41d6b7fab3 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 -- cgit v1.2.3