summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-04-25 19:03:37 +0000
committerJohn Crispin <john@openwrt.org>2013-04-25 19:03:37 +0000
commit520bf463750cf0d5dc582797dc1a0a090e056f4f (patch)
treefd00aa1da23a57b39f7be566b5dd22a3473499d1 /target
parent157c86371f4eb25aa238227bcd04d6f40f23d264 (diff)
downloadmaster-31e0f0ae-520bf463750cf0d5dc582797dc1a0a090e056f4f.tar.gz
master-31e0f0ae-520bf463750cf0d5dc582797dc1a0a090e056f4f.tar.bz2
master-31e0f0ae-520bf463750cf0d5dc582797dc1a0a090e056f4f.zip
lantiq: fix board detection helpers
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36444
Diffstat (limited to 'target')
-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"
}