treewide: fix upgrade led handling
authorMathias Kresin <dev@kresin.me>
Wed, 15 Aug 2018 17:12:27 +0000 (19:12 +0200)
committerMathias Kresin <dev@kresin.me>
Thu, 16 Aug 2018 19:20:57 +0000 (21:20 +0200)
commitdd448cd2767c42d0ccde960da61585a2537eaf5a
treecb31db202d67a032fe54a0f174e53fbd523e9434
parent56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec
treewide: fix upgrade led handling

The upgrade led is only used if a running led is defined. If no running
led is defined, the upgrade led is ignored and upgrade isn't indicated
at all.

Instead, turn off the running led prior to turning the upgrade led on.
In most cases there isn't any visual change, but it allows to use an
independent led for upgrade indication.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/apm821xx/base-files/etc/diag.sh
target/linux/ath79/base-files/etc/diag.sh
target/linux/ipq40xx/base-files/etc/diag.sh
target/linux/ipq806x/base-files/etc/diag.sh