preinit: fix mixup between led and reset button enable on some platforms (thx, cshore)
[openwrt.git] / target / linux / adm5120 / base-files / lib / adm5120.sh
index d599a09..06e2aac 100755 (executable)
@@ -2,7 +2,6 @@
 #
 # Copyright (C) 2007 OpenWrt.org
 #
-# $Id$
 #
 
 board_name=""
@@ -10,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"*)
This page took 0.020386 seconds and 4 git commands to generate.