X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=99ebe35b44f0b7ca924b580f6fa7a6d73346c8b3;hb=6f008af3f0b30d2af21ad6934c17b0ae69103ecd;hp=f25d1e2a62602c9a90be33801aa7fb04e973f6a4;hpb=9ab81e63cd398ae740bfadb9b318e6e0ec3712cc;p=openwrt%2Fstaging%2Fstintel.git diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index f25d1e2a62..99ebe35b44 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -2,13 +2,10 @@ # Copyright (C) 2010 OpenWrt.org # -. /lib/ramips.sh - PART_NAME=firmware -RAMFS_COPY_DATA=/lib/ramips.sh platform_check_image() { - local board=$(ramips_board_name) + local board=$(board_name) local magic="$(get_magic_long "$1")" [ "$#" -gt 1 ] && return 1 @@ -30,9 +27,9 @@ platform_check_image() { awapn2403|\ awm002-evb-4M|\ awm002-evb-8M|\ - awm003-evb|\ bc2|\ broadway|\ + c108|\ carambola|\ cf-wr800n|\ cs-qr10|\ @@ -62,6 +59,7 @@ platform_check_image() { firewrt|\ fonera20n|\ freestation5|\ + gb-pc1|\ gl-mt300a|\ gl-mt300n|\ gl-mt750|\ @@ -77,6 +75,7 @@ platform_check_image() { jhr-n805r|\ jhr-n825r|\ jhr-n926r|\ + k2p|\ kn|\ kn_rc|\ kn_rf|\ @@ -139,17 +138,20 @@ platform_check_image() { sap-g3200u3|\ sk-wb8|\ sl-r7205|\ + tew-638apb-v2|\ tew-691gr|\ tew-692gr|\ tew-714tru|\ timecloud|\ tiny-ac|\ + u25awf-h1|\ ur-326n4g|\ ur-336un|\ v22rw-2x2|\ vocore-8M|\ vocore-16M|\ vocore2|\ + vocore2lite|\ vr500|\ w150m|\ w2914nsv2|\ @@ -170,6 +172,7 @@ platform_check_image() { wl-wn575a3|\ wli-tx4-ag300n|\ wlr-6000|\ + wmdr-143n|\ wmr-300|\ wn3000rpv3|\ wnce2001|\ @@ -191,6 +194,7 @@ platform_check_image() { x8|\ y1|\ y1s|\ + we1026-5g-16m|\ zbt-ape522ii|\ zbt-cpe102|\ zbt-wa05|\ @@ -227,9 +231,12 @@ platform_check_image() { } return 0 ;; + c20|\ c20i|\ c50|\ - mr200) + mr200|\ + tl-wr840n-v4|\ + tl-wr841n-v13) [ "$magic" != "03000000" ] && { echo "Invalid image type." return 1 @@ -248,11 +255,20 @@ platform_check_image() { return 0 ;; hc5962|\ + mir3g|\ r6220) # these boards use metadata images return 0 ;; - ubnt-erx) + re350-v1) + [ "$magic" != "01000000" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; + ubnt-erx|\ + ubnt-erx-sfp) nand_do_platform_check "$board" "$1" return $?; ;; @@ -271,22 +287,25 @@ platform_check_image() { } platform_nand_pre_upgrade() { - local board=$(ramips_board_name) + local board=$(board_name) case "$board" in - ubnt-erx) + ubnt-erx|\ + ubnt-erx-sfp) platform_upgrade_ubnt_erx "$ARGV" ;; esac } platform_do_upgrade() { - local board=$(ramips_board_name) + local board=$(board_name) case "$board" in hc5962|\ + mir3g|\ r6220|\ - ubnt-erx) + ubnt-erx|\ + ubnt-erx-sfp) nand_do_upgrade "$ARGV" ;; *)