mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
72ba27ae72
SVN-Revision: 24859
26 lines
316 B
Bash
Executable File
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
|
|
}
|