mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ramips: add user-space detection for ALL5002/ALL5003
Signed-off-by: Daniel Golle <dgolle@allnet.de> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35852 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6d4126a70e
commit
1720de2872
@ -6,6 +6,19 @@
|
||||
RAMIPS_BOARD_NAME=
|
||||
RAMIPS_MODEL=
|
||||
|
||||
all500x_board_detect() {
|
||||
local systype
|
||||
|
||||
systype=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /system type/ {print $2}' /proc/cpuinfo)
|
||||
case "$systype" in
|
||||
*"RT5350"*)
|
||||
RAMIPS_MODEL="Allnet ALL5003"
|
||||
;;
|
||||
*"RT3352"*)
|
||||
RAMIPS_MODEL="Allnet ALL5002"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
ramips_board_detect() {
|
||||
local machine
|
||||
@ -193,6 +206,12 @@ ramips_board_detect() {
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$machine" in
|
||||
*"Allnet ALL5002/ALL5003")
|
||||
all500x_board_detect
|
||||
;;
|
||||
esac
|
||||
|
||||
[ -z "$RAMIPS_BOARD_NAME" ] && RAMIPS_BOARD_NAME="$name"
|
||||
[ -z "$RAMIPS_MODEL" ] && RAMIPS_MODEL="$machine"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user