projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add support for MikroTik hAP ac
[openwrt/staging/wigyori.git]
/
target
/
linux
/
ar71xx
/
base-files
/
lib
/
upgrade
/
platform.sh
diff --git
a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index d48135a6d3b8251aecca6ad6215bf79c9effe132..7a0bbb63b4314b83a3a2ae7286cc813680035c19 100755
(executable)
--- a/
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@
-204,6
+204,7
@@
platform_check_image() {
airgateway|\
airrouter|\
ap132|\
airgateway|\
airrouter|\
ap132|\
+ ap531b0|\
ap90q|\
archer-c59-v1|\
archer-c60-v1|\
ap90q|\
archer-c59-v1|\
archer-c60-v1|\
@@
-637,6
+638,9
@@
platform_check_image() {
rb-750up-r2|\
rb-941-2nd|\
rb-951ui-2nd|\
rb-750up-r2|\
rb-941-2nd|\
rb-951ui-2nd|\
+ rb-952ui-5ac2nd|\
+ rb-962uigs-5hact2hnt|\
+ rb-lhg-5nd|\
rb-mapl-2nd)
return 0
;;
rb-mapl-2nd)
return 0
;;
@@
-684,6
+688,17
@@
platform_pre_upgrade() {
wndr4300)
nand_do_upgrade "$1"
;;
wndr4300)
nand_do_upgrade "$1"
;;
+ rb-750-r2|\
+ rb-750up-r2|\
+ rb-941-2nd|\
+ rb-951ui-2nd|\
+ rb-952ui-5ac2nd|\
+ rb-962uigs-5hact2hnt|\
+ rb-lhg-5nd|\
+ rb-mapl-2nd)
+ # erase firmware if booted from initramfs
+ [ -z "$(rootfs_type)" ] && mtd erase firmware
+ ;;
mr18|\
z1)
merakinand_do_upgrade "$1"
mr18|\
z1)
merakinand_do_upgrade "$1"