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>
fi
}
+indicate_upgrade() {
+ . /etc/diag.sh
+ set_state upgrade
+}
+
# Flash firmware to MTD partition
#
# $(1): path to image
echo
}
+indicate_upgrade
killall -9 telnetd
killall -9 dropbear
;;
esac
}
-
-blink_led() {
- . /etc/diag.sh; set_state upgrade
-}
-
-append sysupgrade_pre_upgrade blink_led
;;
esac
}
-
-blink_led() {
- . /etc/diag.sh; set_state upgrade
-}
-
-append sysupgrade_pre_upgrade blink_led
;;
esac
}
-
-blink_led() {
- . /etc/diag.sh; set_state upgrade
-}
-append sysupgrade_pre_upgrade blink_led
;;
esac
}
-
-blink_led() {
- . /etc/diag.sh; set_state upgrade
-}
-
-append sysupgrade_pre_upgrade blink_led