generic: rtl8366rb: use correct bitmasks in sanity checks
[openwrt.git] / target / linux / adm5120 / base-files / lib / adm5120.sh
index d599a09..496fc06 100755 (executable)
@@ -2,7 +2,6 @@
 #
 # Copyright (C) 2007 OpenWrt.org
 #
 #
 # Copyright (C) 2007 OpenWrt.org
 #
-# $Id$
 #
 
 board_name=""
 #
 
 board_name=""
@@ -10,7 +9,7 @@ status_led=""
 sys_mtd_part=""
 
 adm5120_detect() {
 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"*)
 
        case "$board_name" in
        "Cellvision"*)
@@ -42,6 +41,10 @@ adm5120_detect() {
                status_led="power"
                sys_mtd_part="trx"
                ;;
                status_led="power"
                sys_mtd_part="trx"
                ;;
+       "EB-214A"*)
+               status_led="power"
+               sys_mtd_part="firmware"
+               ;;
        *)
                ;;
        esac
        *)
                ;;
        esac
This page took 0.020578 seconds and 4 git commands to generate.