You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
316 B

#!/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
}