treewide: consolidate upgrade state set

Set the (sys)upgrade state when sourcing the stage2 script instead of
setting the state for each target individual.

This change fixes the, due to a missing state set, not working upgrade
led on ath79 and apm821xx.

Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
Mathias Kresin
2018-08-15 18:55:01 +02:00
parent 1ea1f3a223
commit 56b8ac1e86
6 changed files with 6 additions and 23 deletions

View File

@@ -211,6 +211,11 @@ jffs2_copy_config() {
fi
}
indicate_upgrade() {
. /etc/diag.sh
set_state upgrade
}
# Flash firmware to MTD partition
#
# $(1): path to image