X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=3245e2c1c806e24c9404dec1ea7a421fcfce4721;hb=9b35815f0f0e10125d144c82595bbccbc83d6812;hp=7f161f5342dc026dd7b9d675a82ca954f182edc2;hpb=5f6e94855113b0c37fba57eda4af0b0427457b98;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 7f161f5342..3245e2c1c8 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -17,6 +17,7 @@ platform_check_image() { 3g150b|\ 3g300m|\ a5-v11|\ + ac1200pro|\ ai-br100|\ air3gii|\ all0239-3g|\ @@ -34,6 +35,7 @@ platform_check_image() { cf-wr800n|\ cs-qr10|\ d105|\ + d240|\ dap-1350|\ db-wrt01|\ dcs-930|\ @@ -42,15 +44,16 @@ platform_check_image() { dir-300-b7|\ dir-320-b1|\ dir-600-b1|\ - dir-600-b2|\ dir-615-d|\ dir-615-h1|\ dir-620-a1|\ dir-620-d1|\ dir-810l|\ duzun-dm06|\ + dwr-512-b|\ e1700|\ esr-9753|\ + ew1200|\ ex2700|\ f7c027|\ firewrt|\ @@ -60,6 +63,7 @@ platform_check_image() { gl-mt300n|\ gl-mt750|\ hc5*61|\ + hc5661a|\ hg255d|\ hlk-rm04|\ hpm|\ @@ -69,6 +73,9 @@ platform_check_image() { jhr-n805r|\ jhr-n825r|\ jhr-n926r|\ + kn_rc|\ + kn_rf|\ + kng_rc|\ linkits7688|\ linkits7688d|\ m2m|\ @@ -98,6 +105,8 @@ platform_check_image() { newifi-d1|\ nixcore|\ nw718|\ + omega2|\ + omega2p|\ oy-0001|\ pbr-d1|\ pbr-m1|\ @@ -129,8 +138,10 @@ platform_check_image() { ur-336un|\ v22rw-2x2|\ vocore|\ + vocore2|\ vr500|\ w150m|\ + w2914nsv2|\ w306r-v20|\ w502u|\ wf-2881|\ @@ -147,7 +158,9 @@ platform_check_image() { wl-351|\ wl-wn575a3|\ wli-tx4-ag300n|\ + wlr-6000|\ wmr-300|\ + wn3000rpv3|\ wnce2001|\ wndr3700v5|\ wr512-3gn|\ @@ -197,7 +210,8 @@ platform_check_image() { return 0 ;; c20i|\ - c50) + c50|\ + mr200) [ "$magic" != "03000000" ] && { echo "Invalid image type." return 1 @@ -215,6 +229,15 @@ platform_check_image() { } return 0 ;; + hc5962) + # these boards use metadata images + return 0 + ;; + ubnt-erx) + nand_do_platform_check "$board" "$1" + return $?; + ;; + wcr-1166ds|\ wsr-1166) [ "$magic" != "48445230" ] && { echo "Invalid image type." @@ -222,10 +245,6 @@ platform_check_image() { } return 0 ;; - ubnt-erx) - nand_do_platform_check "$board" "$1" - return $?; - ;; esac echo "Sysupgrade is not yet supported on $board." @@ -246,6 +265,7 @@ platform_pre_upgrade() { local board=$(ramips_board_name) case "$board" in + hc5962|\ ubnt-erx) nand_do_upgrade "$ARGV" ;;