mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: add support for the WNDR3700v2 board
Based on a patch by Mark Mentovai <mark@moxienet.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25118 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user