summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib/functions/lantiq.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/base-files/lib/functions/lantiq.sh')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh9
1 files changed, 9 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
new file mode 100644
index 000000000..ca52d08a6
--- /dev/null
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+lantiq_board_id() {
+ grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\) - .*/\1/g"
+}
+
+lantiq_board_name() {
+ grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"
+}