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/lib/functions/lantiq.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target/linux/lantiq/base-files/lib/functions') diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh index e4eb4d723f..630832e512 100644 --- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh @@ -39,3 +39,7 @@ lantiq_get_dt_led() { echo "$label" } + +lantiq_is_vdsl_system() { + grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo +} -- cgit v1.2.3