aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-08-17 06:18:38 +0000
committerJohn Crispin <blogic@openwrt.org>2015-08-17 06:18:38 +0000
commit5b15e79ac8ccca6e4ee270a02d1019e60d056ff2 (patch)
tree642e2c0222c1a82de270abcf8923d20b221b77c7
parentc77bfa1ad3bcb08fad1636dc78642dc7668adb6e (diff)
downloadmaster-187ad058-5b15e79ac8ccca6e4ee270a02d1019e60d056ff2.tar.gz
master-187ad058-5b15e79ac8ccca6e4ee270a02d1019e60d056ff2.tar.bz2
master-187ad058-5b15e79ac8ccca6e4ee270a02d1019e60d056ff2.zip
ramips: reorder the sysupgrade script
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46660 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh26
1 files changed, 13 insertions, 13 deletions
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
}