x86/soekris: Add script to detect soekris model
[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 *)
26 name="generic"
27 ;;
28 esac
29
30 echo $name
31 }
This page took 0.046043 seconds and 5 git commands to generate.