x86: add upgrade support to diag.sh
authorChris Blake <chrisrblake93@gmail.com>
Wed, 9 Jun 2021 12:23:11 +0000 (07:23 -0500)
committerDavid Bauer <mail@david-bauer.net>
Thu, 10 Jun 2021 08:34:44 +0000 (10:34 +0200)
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@gmail.com>
target/linux/x86/base-files/etc/diag.sh

index d043e4f03535468cb29d505a532281f951b21209..303dcbcdeac5d19352d32cf64d00bbb5a2805c1a 100644 (file)
@@ -73,6 +73,10 @@ set_state() {
                status_led_blink_preinit_regular
                ;;
 
+       upgrade)
+               status_led_blink_preinit_regular
+               ;;
+
        done)
                status_led_on
                ;;