lantiq: fix board detection helpers
authorJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:03:37 +0000 (19:03 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:03:37 +0000 (19:03 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36444

target/linux/lantiq/base-files/lib/functions/lantiq.sh

index ca52d08a60f396954175f149d28b706745b376b7..ed76cd80144cfd69f7fdb10f299cda0136b7492e 100644 (file)
@@ -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"
 }