diff options
author | Mathias Kresin <dev@kresin.me> | 2017-02-17 22:04:12 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-02-18 16:52:05 +0100 |
commit | 6a6e3a4928010f7e9a04cf3b7f61ecc472df2273 (patch) | |
tree | 7a73c948a1340fbf68964c47e32ccbb7318836ed /target/linux/lantiq/base-files/lib | |
parent | c5879b067680d7b02e365ea0cfd0324edf70425c (diff) | |
download | upstream-6a6e3a4928010f7e9a04cf3b7f61ecc472df2273.tar.gz upstream-6a6e3a4928010f7e9a04cf3b7f61ecc472df2273.tar.bz2 upstream-6a6e3a4928010f7e9a04cf3b7f61ecc472df2273.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.sh | 4 |
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 +} |