From eba4a143c6996fcacc7f1708528d5411f16ecc4f Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 17 Aug 2015 06:18:38 +0000 Subject: ramips: reorder the sysupgrade script Signed-off-by: John Crispin SVN-Revision: 46660 --- .../ramips/base-files/lib/upgrade/platform.sh | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'target') diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 4d261a5081..53e7070c99 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -134,39 +134,39 @@ platform_check_image() { } return 0 ;; - wsr-1166) - [ "$magic" != "48445230" ] && { + ar670w) + [ "$magic" != "6d000080" ] && { echo "Invalid image type." return 1 } return 0 ;; - ar670w) - [ "$magic" != "6d000080" ] && { + br-6475nd) + [ "$magic" != "43535953" ] && { echo "Invalid image type." return 1 } return 0 ;; - cy-swr1100|\ - dir-610-a1|\ - dir-645|\ - dir-860l-b1) - [ "$magic" != "5ea3a417" ] && { + c20i) + [ "$magic" != "03000000" ] && { echo "Invalid image type." return 1 } return 0 ;; - br-6475nd) - [ "$magic" != "43535953" ] && { + cy-swr1100|\ + dir-610-a1|\ + dir-645|\ + dir-860l-b1) + [ "$magic" != "5ea3a417" ] && { echo "Invalid image type." return 1 } return 0 ;; - c20i) - [ "$magic" != "03000000" ] && { + wsr-1166) + [ "$magic" != "48445230" ] && { echo "Invalid image type." return 1 } -- cgit v1.2.3