ar71xx: cosmetic fix of alfa ap120c/ap96 ordering
[openwrt-working-2016/.git] / target / linux / cns3xxx / base-files / lib / cns3xxx.sh
1 #!/bin/sh
2 #
3 # Copyright (C) 2012 OpenWrt.org
4 #
5
6 cns3xxx_board_name() {
7         local machine
8         local name
9
10         machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo)
11
12         case "$machine" in
13                 "Gateworks Corporation Laguna"*)
14                         name="laguna"
15                         ;;
16                 *)
17                         name="generic";
18                         ;;
19         esac
20         
21         echo $name
22 }