2 # Copyright (C) 2010 OpenWrt.org
6 REQUIRE_IMAGE_METADATA
=1
8 RAMFS_COPY_BIN
='fw_printenv fw_setenv'
9 RAMFS_COPY_DATA
='/etc/fw_env.config /var/lock/fw_printenv.lock'
11 platform_check_image
() {
15 platform_do_upgrade
() {
16 local board
=$
(board_name
)
19 alfa-network
,awusfree1
)
20 [ "$(fw_printenv -n dual_image 2>/dev/null)" = "1" ] &&\
21 [ -n "$(find_mtd_part backup)" ] && {
23 if [ "$(fw_printenv -n bootactive 2>/dev/null)" = "1" ]; then
24 fw_setenv bootactive
2 ||
exit 1
26 fw_setenv bootactive
1 ||
exit 1
29 default_do_upgrade
"$1"
31 tplink
,archer-c20-v5|\
32 tplink
,archer-c50-v4|\
35 default_do_upgrade
"$1"
38 default_do_upgrade
"$1"