treewide: consolidate upgrade state set
authorMathias Kresin <dev@kresin.me>
Wed, 15 Aug 2018 16:55:01 +0000 (18:55 +0200)
committerMathias Kresin <dev@kresin.me>
Thu, 16 Aug 2018 19:20:57 +0000 (21:20 +0200)
commit56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec
tree4494f9c2e127cfb96b65b528027666a114950b77
parent1ea1f3a223d7a56f96de00001f59b077a6c4d237
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>
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/stage2
target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
target/linux/ipq806x/base-files/lib/upgrade/platform.sh
target/linux/pistachio/base-files/lib/upgrade/platform.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh