1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

backfire: ar71xx: add support for the WNDR3700v2 board (backport of r25118)

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@26116 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2011-03-13 14:54:01 +00:00
parent 3ee7252632
commit d0e868b3f0
7 changed files with 158 additions and 10 deletions

View File

@@ -64,6 +64,7 @@ platform_do_upgrade_combined() {
platform_check_image() {
local board=$(ar71xx_board_name)
local magic="$(get_magic_word "$1")"
local magic_long="$(get_magic_long "$1")"
[ "$ARGC" -gt 1 ] && return 1
@@ -83,7 +84,14 @@ platform_check_image() {
return 0
;;
wndr3700)
[ "$magic" != "3337" ] && {
[ "$magic_long" != "33373030" ] && {
echo "Invalid image type."
return 1
}
return 0
;;
wndr3700v2)
[ "$magic_long" != "33373031" ] && {
echo "Invalid image type."
return 1
}