aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/lib/upgrade
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-16 18:55:14 +0000
committerJohn Crispin <blogic@openwrt.org>2014-06-16 18:55:14 +0000
commita0be38dafa35ea15b278fe0f7b80f4603853142a (patch)
tree4c822d7d2bb26d73452dad4d54cb2800c14f2f89 /target/linux/ar71xx/base-files/lib/upgrade
parent0e42bc27c721b8e5e9ed2214390a2ef70dcbecdc (diff)
downloadupstream-a0be38dafa35ea15b278fe0f7b80f4603853142a.tar.gz
upstream-a0be38dafa35ea15b278fe0f7b80f4603853142a.tar.bz2
upstream-a0be38dafa35ea15b278fe0f7b80f4603853142a.zip
procd: various cleanups to /lib/upgrade/nand.sh
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41222 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/upgrade')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 4e698c6f68..57803ccd9d 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -306,12 +306,8 @@ platform_check_image() {
return 0
;;
wndr4300 )
- nand_do_upgrade_stage1 $board $1
- [ $? != 0 ] && {
- echo "Invalid tar file."
- return 1
- }
- return 0;
+ nand_do_platform_check $board $1
+ return $?;
;;
routerstation | \
routerstation-pro | \