X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=2a5c7c3ee61a9609a168615a73f7c6f04206ec5d;hb=f1283d85832afbe1104cf89b02c0b104385bd2e7;hp=9f4ce2cb833e772a4e092b3da5bda2471da29bcf;hpb=e70ad61e4451ec23e843ba00365ac7e928392adf;p=openwrt%2Fstaging%2Fchunkeey.git diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 9f4ce2cb83..2a5c7c3ee6 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -15,7 +15,7 @@ platform_find_partitions() { while read dev size erasesize name; do name=${name#'"'}; name=${name%'"'} case "$name" in - vmlinux.bin.l7|vmlinux|kernel|linux|rootfs|filesystem) + vmlinux.bin.l7|vmlinux|kernel|linux|linux.bin|rootfs|filesystem) if [ -z "$first" ]; then first="$name" else @@ -31,7 +31,7 @@ platform_find_kernelpart() { local part for part in "${1%:*}" "${1#*:}"; do case "$part" in - vmlinux.bin.l7|vmlinux|kernel|linux) + vmlinux.bin.l7|vmlinux|kernel|linux|linux.bin) echo "$part" break ;; @@ -100,13 +100,11 @@ platform_check_image() { dir-600-a1 | \ dir-615-c1 | \ dir-615-e4 | \ - dir-825-b1 | \ ew-dorin | \ ew-dorin-router | \ mzk-w04nu | \ mzk-w300nh | \ tew-632brp | \ - tew-673gru | \ tew-712br | \ wrt400n | \ airrouter | \ @@ -130,6 +128,12 @@ platform_check_image() { } return 0 ;; + + dir-825-b1 | \ + tew-673gru) + dir825b_check_image "$1" && return 0 + ;; + om2p | \ om2p-lc) platform_check_image_om2p "$magic_long" "$1" && return 0 @@ -148,6 +152,7 @@ platform_check_image() { tl-wr741nd-v4 | \ tl-wr841n-v1 | \ tl-wr841n-v7 | \ + tl-wr841n-v8 | \ tl-wr941nd | \ tl-wr1041n-v2 | \ tl-wr1043nd | \ @@ -195,7 +200,8 @@ platform_check_image() { all0305 | \ eap7660d | \ ja76pf | \ - ja76pf2) + ja76pf2 | \ + jwap003) [ "$magic" != "4349" ] && { echo "Invalid image. Use *-sysupgrade.bin files on this board" return 1 @@ -230,7 +236,8 @@ platform_do_upgrade() { pb42 | \ pb44 | \ ja76pf | \ - ja76pf2) + ja76pf2 | \ + jwap003) platform_do_upgrade_combined "$ARGV" ;; all0258n ) @@ -239,6 +246,10 @@ platform_do_upgrade() { all0315n ) platform_do_upgrade_allnet "0x9f080000" "$ARGV" ;; + dir-825-b1 |\ + tew-673gru) + platform_do_upgrade_dir825b "$ARGV" + ;; om2p | \ om2p-lc) platform_do_upgrade_om2p "$ARGV"