Signed-off-by: John Crispin <blogic@openwrt.org>
Backport of r47373
SVN-Revision: 47374
hw550-3g)
status_led="hw550-3g:green:status"
;;
+ linkits7688| \
+ linkits7688d)
+ [ "$1" = "upgrade" ] && status_led="mediatek:orange:wifi"
+ ;;
m2m)
status_led="m2m:blue:wifi"
;;
}
set_state() {
- get_status_led
+ get_status_led $1
case "$1" in
preinit)
failsafe)
status_led_blink_failsafe
;;
+ upgrade | \
preinit_regular)
status_led_blink_preinit_regular
;;
}
}
+blink_led() {
+ . /etc/diag.sh; set_state upgrade
+}
+
append sysupgrade_pre_upgrade disable_watchdog
+append sysupgrade_pre_upgrade blink_led