From: Gabor Juhos Date: Sun, 9 Aug 2009 14:12:24 +0000 (+0000) Subject: [ar71xx] enable sysupgrade on the WRT160Nl X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=262fb32da66be783d3358019f8c1a93e7ffde5fb [ar71xx] enable sysupgrade on the WRT160Nl SVN-Revision: 17202 --- diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index a5cb354c92..c4c56afdd0 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -21,13 +21,20 @@ platform_check_image() { } return 0 ;; - tl-wr741nd | tl-wr941nd) + tl-wr741nd | tl-wr941nd) [ "$magic" != "0100" ] && { echo "Invalid image type." return 1 } return 0 ;; + wrt160nl) + [ "$magic" != "4e4c" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; esac echo "Sysupgrade is not yet supported on $board."