8c64d6a8e78661d0f1a6acfa640dae94b86414f6
[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 *"MoFi Network MOFI3500-3GN")
29 name="mofi3500-3gn"
30 ;;
31 *)
32 name="generic"
33 ;;
34 esac
35
36 echo $name
37 }
This page took 0.045181 seconds and 3 git commands to generate.