aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib
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:51:31 +0100
commit044a4eafd5e1a06eedee700bb4191f02674a9da1 (patch)
tree9acd65b61b83e3e2c7fa4c2dc6232de7062c075d /target/linux/lantiq/base-files/lib
parentcfd16ecc4824d3c29f92827fc04f40baa30f61a5 (diff)
downloadupstream-044a4eafd5e1a06eedee700bb4191f02674a9da1.tar.gz
upstream-044a4eafd5e1a06eedee700bb4191f02674a9da1.tar.bz2
upstream-044a4eafd5e1a06eedee700bb4191f02674a9da1.zip
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/lib')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh4
1 files changed, 4 insertions, 0 deletions
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
+}