projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9f9256740b6a5430b3ec318d7e4fa1fd439e0224
[openwrt.git]
/
target
/
linux
/
ramips
/
base-files
/
lib
/
ramips.sh
1
#!/bin/sh
2
#
3
# Copyright (C) 2010 OpenWrt.org
4
#
5
6
ramips_board_name() {
7
local machine
8
local name
9
10
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
11
12
case "$machine" in
13
*"DIR-300 revB")
14
name="dir-300-b1"
15
;;
16
*"La Fonera 2.0N")
17
name="fonera20n"
18
;;
19
*"V22RW-2X2")
20
name="v22rw-2x2"
21
;;
22
*"WHR-G300N")
23
name="whr-g300n"
24
;;
25
*)
26
name="generic"
27
;;
28
esac
29
30
echo $name
31
}