Skip to content
Snippets Groups Projects
Commit 59ad675e authored by Gabor Juhos's avatar Gabor Juhos
Browse files

ramips: add user-space detection for ALL5002/ALL5003


Signed-off-by: default avatarDaniel Golle <dgolle@allnet.de>
Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35852
parent 50e51e5e
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment