From 72ba27ae72480d5a23b77b5760d81d4142f8181b Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Thu, 30 Dec 2010 17:19:16 +0000 Subject: cns21xx: add initial support for the Cavium CNS21xx SoC SVN-Revision: 24859 --- target/linux/cns21xx/base-files/lib/cns21xx.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 target/linux/cns21xx/base-files/lib/cns21xx.sh (limited to 'target/linux/cns21xx/base-files/lib/cns21xx.sh') diff --git a/target/linux/cns21xx/base-files/lib/cns21xx.sh b/target/linux/cns21xx/base-files/lib/cns21xx.sh new file mode 100755 index 0000000000..c10f6d38c6 --- /dev/null +++ b/target/linux/cns21xx/base-files/lib/cns21xx.sh @@ -0,0 +1,25 @@ +#!/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 +} -- cgit v1.2.3