mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: rewrite WNDR3700/3800 handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29434 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -127,15 +127,11 @@ platform_check_image() {
|
||||
return 0
|
||||
;;
|
||||
wndr3700)
|
||||
[ "$magic_long" != "33373030" ] && {
|
||||
echo "Invalid image type."
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
;;
|
||||
wndr3700v2|wndr3800)
|
||||
[ "$magic_long" != "33373031" ] && {
|
||||
echo "Invalid image type."
|
||||
local hw_magic
|
||||
|
||||
hw_magic="$(ar71xx_get_mtd_part_magic firmware)"
|
||||
[ "$magic_long" != "$hw_magic" ] && {
|
||||
echo "Invalid image, hardware ID mismatch, hw:$hw_magic image:$magic_long."
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user