ipq806x: add support for indicating the boot and upgrade state using four leds
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / lib / upgrade / platform.sh
index 7726abb91fb4a3dbb4cc94d9c3d346e35f03b9dd..87689306531accb13114e742db873bfdc5de93c2 100644 (file)
@@ -59,3 +59,9 @@ platform_do_upgrade() {
                ;;
        esac
 }
+
+blink_led() {
+       . /etc/diag.sh; set_state upgrade
+}
+
+append sysupgrade_pre_upgrade blink_led