X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=066bfd4149615568f0b3084caf8bb7d3231b33f5;hp=cdd463edbeefe1f0caac3938eb4162d5035f367e;hb=4dde7d6a5f6ed0acd150ee1a893ef5812d46a96c;hpb=a23e6523409bd5566e4da9ae276a17d76d8dbf15 diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index cdd463edbe..066bfd4149 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 ;; @@ -135,6 +135,7 @@ platform_check_image() { ;; om2p | \ + om2p-hs | \ om2p-lc) platform_check_image_om2p "$magic_long" "$1" && return 0 return 1 @@ -152,6 +153,7 @@ platform_check_image() { tl-wr741nd-v4 | \ tl-wr841n-v1 | \ tl-wr841n-v7 | \ + tl-wr841n-v8 | \ tl-wr941nd | \ tl-wr1041n-v2 | \ tl-wr1043nd | \ @@ -199,7 +201,8 @@ platform_check_image() { all0305 | \ eap7660d | \ ja76pf | \ - ja76pf2) + ja76pf2 | \ + jwap003) [ "$magic" != "4349" ] && { echo "Invalid image. Use *-sysupgrade.bin files on this board" return 1 @@ -234,7 +237,8 @@ platform_do_upgrade() { pb42 | \ pb44 | \ ja76pf | \ - ja76pf2) + ja76pf2 | \ + jwap003) platform_do_upgrade_combined "$ARGV" ;; all0258n ) @@ -248,6 +252,7 @@ platform_do_upgrade() { platform_do_upgrade_dir825b "$ARGV" ;; om2p | \ + om2p-hs | \ om2p-lc) platform_do_upgrade_om2p "$ARGV" ;;