diff options
author | Mathias Kresin <dev@kresin.me> | 2018-08-15 18:55:01 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-16 21:20:57 +0200 |
commit | 56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec (patch) | |
tree | 4494f9c2e127cfb96b65b528027666a114950b77 /target | |
parent | 1ea1f3a223d7a56f96de00001f59b077a6c4d237 (diff) | |
download | upstream-56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec.tar.gz upstream-56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec.tar.bz2 upstream-56b8ac1e86eb5b0c500cbf8db60ce00aff01bcec.zip |
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>
Diffstat (limited to 'target')
4 files changed, 0 insertions, 23 deletions
diff --git a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh index 0e29302465..610f9bbbdb 100644 --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -83,9 +83,3 @@ platform_nand_pre_upgrade() { ;; esac } - -blink_led() { - . /etc/diag.sh; set_state upgrade -} - -append sysupgrade_pre_upgrade blink_led diff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh index b41bea1c29..6e282f99f4 100644 --- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh @@ -46,9 +46,3 @@ platform_nand_pre_upgrade() { ;; esac } - -blink_led() { - . /etc/diag.sh; set_state upgrade -} - -append sysupgrade_pre_upgrade blink_led diff --git a/target/linux/pistachio/base-files/lib/upgrade/platform.sh b/target/linux/pistachio/base-files/lib/upgrade/platform.sh index d7d2ba065a..4de019a27c 100755 --- a/target/linux/pistachio/base-files/lib/upgrade/platform.sh +++ b/target/linux/pistachio/base-files/lib/upgrade/platform.sh @@ -49,8 +49,3 @@ platform_nand_pre_upgrade() { ;; esac } - -blink_led() { - . /etc/diag.sh; set_state upgrade -} -append sysupgrade_pre_upgrade blink_led diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 67c032cb8a..78b75d4648 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -367,9 +367,3 @@ platform_do_upgrade() { ;; esac } - -blink_led() { - . /etc/diag.sh; set_state upgrade -} - -append sysupgrade_pre_upgrade blink_led |