cns21xx: add initial support for the Cavium CNS21xx SoC
[openwrt.git] / target / linux / cns21xx / base-files / lib / cns21xx.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 get_board_name() {
7 local hardware
8 local name
9
10 hardware=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
11
12 case "$hardware" in
13 *NSB3AST)
14 name="nsb3ast"
15 ;;
16 "NS-K330 NAS")
17 name="ns-k330"
18 ;;
19 *)
20 name="generic"
21 ;;
22 esac
23
24 echo $name
25 }
This page took 0.04902 seconds and 5 git commands to generate.