mirror of https://github.com/hak5/openwrt.git
ar71xx: use cybertan_check_image for image verification on the WRT160NL
That function provides a slightly improved sanity check than the currently used solution. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38967lede-17.01
parent
1fa75d430a
commit
6ad568902e
|
@ -171,7 +171,8 @@ platform_check_image() {
|
|||
dir825b_check_image "$1" && return 0
|
||||
;;
|
||||
|
||||
mynet-rext)
|
||||
mynet-rext|\
|
||||
wrt160nl)
|
||||
cybertan_check_image "$1" && return 0
|
||||
return 1
|
||||
;;
|
||||
|
@ -275,13 +276,6 @@ platform_check_image() {
|
|||
}
|
||||
return 0
|
||||
;;
|
||||
wrt160nl)
|
||||
[ "$magic" != "4e4c" ] && {
|
||||
echo "Invalid image type."
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
;;
|
||||
routerstation | \
|
||||
routerstation-pro | \
|
||||
ls-sr71 | \
|
||||
|
|
Loading…
Reference in New Issue