[openwrt/openwrt] x86: add upgrade support to diag.sh
LEDE Commits
lede-commits at lists.infradead.org
Thu Jun 10 01:34:48 PDT 2021
blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/82bec3364de557eb21ef85e1993468ba535e540b
commit 82bec3364de557eb21ef85e1993468ba535e540b
Author: Chris Blake <chrisrblake93 at gmail.com>
AuthorDate: Wed Jun 9 07:23:11 2021 -0500
x86: add upgrade support to diag.sh
Similar to how this is done in the diag.sh found in the base-files
package, we should blink our status LED (if we have one) during the
upgrade process. This follows the same blink pattern as seen at
./package/base-files/files/etc/diag.sh#L36
Signed-off-by: Chris Blake <chrisrblake93 at gmail.com>
---
target/linux/x86/base-files/etc/diag.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/linux/x86/base-files/etc/diag.sh b/target/linux/x86/base-files/etc/diag.sh
index d043e4f035..303dcbcdea 100644
--- a/target/linux/x86/base-files/etc/diag.sh
+++ b/target/linux/x86/base-files/etc/diag.sh
@@ -73,6 +73,10 @@ set_state() {
status_led_blink_preinit_regular
;;
+ upgrade)
+ status_led_blink_preinit_regular
+ ;;
+
done)
status_led_on
;;
More information about the lede-commits
mailing list