X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Flib%2Fupgrade%2Fplatform.sh;h=876416ea8117f2e1fa237583d9bdc8b5ffc2ee0e;hp=0b9dd43791c1f0a364e470ae5cf341914e4e791a;hb=eeeca92b28d07f08a5e9f87b67ea81225dd0d7da;hpb=ba89cd525e90f57f3258ef63365a385f5ba72c20 diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 0b9dd43791..876416ea81 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -51,10 +51,12 @@ platform_check_image() { dir-810l|\ e1700|\ esr-9753|\ + ex2700|\ f7c027|\ firewrt|\ fonera20n|\ freestation5|\ + gl-mt300a|\ hc5*61|\ hg255d|\ hlk-rm04|\ @@ -62,6 +64,9 @@ platform_check_image() { ht-tm02|\ hw550-3g|\ ip2202|\ + jhr-n805r|\ + jhr-n825r|\ + jhr-n926r|\ linkits7688|\ linkits7688d|\ m2m|\ @@ -77,12 +82,15 @@ platform_check_image() { mpr-a1|\ mpr-a2|\ mr-102n|\ + mt7628|\ mzk-dp150n|\ mzk-w300nh2|\ + mzk-wdpr|\ nbg-419n|\ nw718|\ oy-0001|\ pbr-m1|\ + psg1208|\ psr-680w|\ px-4885|\ re6500|\ @@ -108,10 +116,12 @@ platform_check_image() { w150m|\ w306r-v20|\ w502u|\ + wf-2881|\ whr-1166d|\ whr-300hp2|\ whr-600d|\ whr-g300n|\ + witi|\ wizfi630a|\ wl-330n|\ wl-330n3g|\ @@ -123,6 +133,8 @@ platform_check_image() { wr512-3gn|\ wr6202|\ wrtnode|\ + wrtnode2r |\ + wrtnode2p |\ wsr-600|\ wt1520|\ wt3020|\ @@ -132,6 +144,7 @@ platform_check_image() { y1|\ y1s|\ zbt-wa05|\ + zbt-we826|\ zbt-wg2626|\ zbt-wr8305rt|\ zte-q7|\ @@ -180,12 +193,36 @@ platform_check_image() { } return 0 ;; + ubnt-erx) + nand_do_platform_check "$board" "$1" + return $?; + ;; esac echo "Sysupgrade is not yet supported on $board." return 1 } +platform_nand_pre_upgrade() { + local board=$(ramips_board_name) + + case "$board" in + ubnt-erx) + platform_upgrade_ubnt_erx "$ARGV" + ;; + esac +} + +platform_pre_upgrade() { + local board=$(ramips_board_name) + + case "$board" in + ubnt-erx) + nand_do_upgrade "$ARGV" + ;; + esac +} + platform_do_upgrade() { local board=$(ramips_board_name)