ramips: initial board support for Aztech HW550-3G
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / ramips.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 ramips_board_name() {
7 local machine
8 local name
9
10 machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
11
12 case "$machine" in
13 *"DIR-300 revB")
14 name="dir-300-b1"
15 ;;
16 *"La Fonera 2.0N")
17 name="fonera20n"
18 ;;
19 *"V22RW-2X2")
20 name="v22rw-2x2"
21 ;;
22 *"WHR-G300N")
23 name="whr-g300n"
24 ;;
25 *"Aztech HW550-3G")
26 name="hw550-3g"
27 ;;
28 *)
29 name="generic"
30 ;;
31 esac
32
33 echo $name
34 }