aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-04-25 19:03:37 +0000
committerJohn Crispin <blogic@openwrt.org>2013-04-25 19:03:37 +0000
commitd23f17e56d532f4f86ba6132d48fea8c83c6d9a6 (patch)
treee4318993d217b0203e7ee64a66674f611645978f
parentd88043aa65dea525223f4543bfe6278f28574705 (diff)
downloadupstream-d23f17e56d532f4f86ba6132d48fea8c83c6d9a6.tar.gz
upstream-d23f17e56d532f4f86ba6132d48fea8c83c6d9a6.tar.bz2
upstream-d23f17e56d532f4f86ba6132d48fea8c83c6d9a6.zip
lantiq: fix board detection helpers
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36444 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
index ca52d08a60..ed76cd8014 100644
--- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
@@ -1,9 +1,9 @@
#!/bin/sh
lantiq_board_id() {
- grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\) - .*/\1/g"
+ grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"
}
lantiq_board_name() {
- grep "^system type" /proc/cpuinfo | sed "s/system type.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"
+ grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"
}