X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=5488972d59ffd19f1df81a0eeaa932e5a6ae7f22;hp=45e141de02be257807007810f7f31f9ebafceb93;hb=5881e2434fce53724c5d09b365945429a4985c41;hpb=14951e8f8e09ba6e2cff140769189a66155a5345;ds=sidebyside diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 45e141de02..5488972d59 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -17,11 +17,13 @@ platform_check_image() { ai-br100|\ air3gii|\ alfa-network,ac1200rm|\ + alfa-network,awusfree1|\ all0239-3g|\ all0256n-4M|\ all0256n-8M|\ all5002|\ all5003|\ + mediatek,ap-mt7621a-v60|\ ar725w|\ asl26555-8M|\ asl26555-16M|\ @@ -29,6 +31,7 @@ platform_check_image() { awm002-evb-4M|\ awm002-evb-8M|\ bc2|\ + bocco|\ broadway|\ c108|\ carambola|\ @@ -50,7 +53,6 @@ platform_check_image() { dir-620-d1|\ dir-810l|\ duzun-dm06|\ - dwr-512-b|\ e1700|\ esr-9753|\ ew1200|\ @@ -60,7 +62,8 @@ platform_check_image() { firewrt|\ fonera20n|\ freestation5|\ - gb-pc1|\ + gnubee,gb-pc1|\ + gnubee,gb-pc2|\ gl-mt300a|\ gl-mt300n|\ gl-mt750|\ @@ -140,6 +143,7 @@ platform_check_image() { sap-g3200u3|\ sk-wb8|\ sl-r7205|\ + tama,w06|\ tew-638apb-v2|\ tew-691gr|\ tew-692gr|\ @@ -162,6 +166,7 @@ platform_check_image() { w2914nsv2|\ w306r-v20|\ w502u|\ + ravpower,wd03|\ wf-2881|\ whr-1166d|\ whr-300hp2|\ @@ -169,7 +174,8 @@ platform_check_image() { whr-g300n|\ widora,neo-16m|\ widora,neo-32m|\ - witi|\ + mqmaker,witi-256m|\ + mqmaker,witi-512m|\ wizfi630a|\ wl-330n|\ wl-330n3g|\ @@ -200,6 +206,7 @@ platform_check_image() { x8|\ y1|\ y1s|\ + youhua,wr1200js|\ we1026-5g-16m|\ zbt-ape522ii|\ zbt-cpe102|\ @@ -214,6 +221,7 @@ platform_check_image() { zbt-wg3526-16M|\ zbt-wg3526-32M|\ zbt-wr8305rt|\ + zorlik,zl5900v2|\ zte-q7|\ youku-yk1) [ "$magic" != "27051956" ] && { @@ -246,6 +254,8 @@ platform_check_image() { tplink,c20-v4|\ tplink,c50-v3|\ tplink,tl-mr3420-v5|\ + tplink,tl-wr842n-v5|\ + tplink,tl-wr902ac-v3|\ tl-wr840n-v4|\ tl-wr840n-v5|\ tl-wr841n-v13) @@ -266,6 +276,15 @@ platform_check_image() { } return 0 ;; + dlink,dwr-116-a1|\ + dlink,dwr-921-c1|\ + dwr-512-b) + [ "$magic" != "0404242b" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; hc5962|\ mir3g|\ r6220|\ @@ -323,17 +342,8 @@ platform_do_upgrade() { esac } -disable_watchdog() { - killall watchdog - ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { - echo 'Could not disable watchdog' - return 1 - } -} - blink_led() { . /etc/diag.sh; set_state upgrade } -append sysupgrade_pre_upgrade disable_watchdog append sysupgrade_pre_upgrade blink_led