2012-10-08 07:24:02 +08:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
cns3xxx_board_name() {
|
2012-11-08 07:12:06 +08:00
|
|
|
local machine
|
|
|
|
local name
|
2012-10-08 07:24:02 +08:00
|
|
|
|
2012-11-08 07:12:06 +08:00
|
|
|
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
|
2012-10-08 07:24:02 +08:00
|
|
|
|
2012-11-08 07:12:06 +08:00
|
|
|
case "$machine" in
|
2012-10-08 07:24:02 +08:00
|
|
|
"Gateworks Corporation Laguna"*)
|
|
|
|
name="laguna"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
name="generic";
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
echo $name
|
|
|
|
}
|