From 3f99c9f1c68e5c279dc604b04b34fb4cf9ecd1d2 Mon Sep 17 00:00:00 2001 From: blogic Date: Thu, 25 Apr 2013 19:03:37 +0000 Subject: [PATCH 1/1] lantiq: fix board detection helpers Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36444 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/lantiq/base-files/lib/functions/lantiq.sh | 4 ++-- 1 file 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" } -- 2.11.0