adm5120: fix board detection
authorGabor Juhos <juhosg@openwrt.org>
Sun, 3 Jan 2010 12:14:14 +0000 (12:14 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 3 Jan 2010 12:14:14 +0000 (12:14 +0000)
SVN-Revision: 19015

target/linux/adm5120/base-files/lib/adm5120.sh

index fb0526e402d40ef8ad06c6a9080f8357de342bb1..06e2aac2dd9e0144e24e9ea4c1109352bda82cda 100755 (executable)
@@ -9,7 +9,7 @@ status_led=""
 sys_mtd_part=""
 
 adm5120_detect() {
-       board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
+       board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
 
        case "$board_name" in
        "Cellvision"*)