X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/fbe96718791c9d94874a591ccd282a30e774c6ea..0ddbef1f62f2d40139132363cb7e739d1fedb628:/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 000000000..c10f6d38c --- /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 +}