diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-07 23:25:31 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-07 23:25:31 +0000 |
commit | d19f47f044d1fe318e1008fda6840b4556c61505 (patch) | |
tree | 15d195afc0c3a71d560a7d479068d63664533ce6 /target/linux/cns3xxx/base-files/lib/cns3xxx.sh | |
parent | 09d787a017c6e931f9d9c6ea3bee89fcc9476616 (diff) | |
download | openwrt-d19f47f044d1fe318e1008fda6840b4556c61505.tar.gz openwrt-d19f47f044d1fe318e1008fda6840b4556c61505.zip |
cns3xxx: merge fixes and improvements from trunk
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33652 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx/base-files/lib/cns3xxx.sh')
-rw-r--r-- | target/linux/cns3xxx/base-files/lib/cns3xxx.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/cns3xxx/base-files/lib/cns3xxx.sh b/target/linux/cns3xxx/base-files/lib/cns3xxx.sh new file mode 100644 index 000000000..d446777c0 --- /dev/null +++ b/target/linux/cns3xxx/base-files/lib/cns3xxx.sh @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Copyright (C) 2012 OpenWrt.org +# + +cns3xxx_board_name() { + local machine + local name + + machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /Hardware/ {print $2}' /proc/cpuinfo) + + case "$machine" in + "Gateworks Corporation Laguna"*) + name="laguna" + ;; + *) + name="generic"; + ;; + esac + + echo $name +} |