1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-18 18:26:15 +02:00
openwrt-xburst/target/linux/cns21xx/base-files/lib/cns21xx.sh
juhosg 0ddbef1f62 cns21xx: add initial support for the Cavium CNS21xx SoC
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24859 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-30 17:19:16 +00:00

26 lines
316 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#
get_board_name() {
local hardware
local name
hardware=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
case "$hardware" in
*NSB3AST)
name="nsb3ast"
;;
"NS-K330 NAS")
name="ns-k330"
;;
*)
name="generic"
;;
esac
echo $name
}