summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-08-09 14:12:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-08-09 14:12:24 +0000
commita59d59be7924bafda8fa5931bb06901067dc018e (patch)
tree9212a47b73d8ec976a50fb4d5ceacf2dcc3ff63a /target/linux/ar71xx/base-files
parent214f39d46db27766ebc6c23d3a816bfbb820a3ab (diff)
downloadmtk-20170518-a59d59be7924bafda8fa5931bb06901067dc018e.zip
mtk-20170518-a59d59be7924bafda8fa5931bb06901067dc018e.tar.gz
mtk-20170518-a59d59be7924bafda8fa5931bb06901067dc018e.tar.bz2
enable sysupgrade on the WRT160Nl
SVN-Revision: 17202
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index a5cb354..c4c56af 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."