[ar7] revert part of r16112, the setup.c part needs more testing
[openwrt.git] / target / linux / adm5120 / base-files / lib / adm5120.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2007 OpenWrt.org
4 #
5 #
6
7 board_name=""
8 status_led=""
9 sys_mtd_part=""
10
11 adm5120_detect() {
12 board_name=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
13
14 case "$board_name" in
15 "Cellvision"*)
16 status_led="status"
17 sys_mtd_part="firmware"
18 ;;
19 "Compex"*)
20 status_led="diag"
21 case "$board_name" in
22 *-WRT)
23 sys_mtd_part="trx"
24 ;;
25 *)
26 sys_mtd_part="partition1"
27 ;;
28 esac
29 ;;
30 "Edimax"*)
31 status_led="power"
32 sys_mtd_part="firmware"
33 ;;
34 "Infineon"*)
35 sys_mtd_part="firmware"
36 ;;
37 "Mikrotik"*)
38 status_led="power"
39 ;;
40 "ZyXEL"*)
41 status_led="power"
42 sys_mtd_part="trx"
43 ;;
44 *)
45 ;;
46 esac
47 }
48
49 adm5120_detect
This page took 0.047041 seconds and 5 git commands to generate.