status_led_blink_failsafe() {
led_timer $status_led 50 50
}
+
+status_led_blink_preinit_regular() {
+ led_timer $status_led 500 500
+}
echo $1
}
-pi_indicate_led() {
- set_state preinit
-}
-
pi_indicate_preinit() {
preinit_net_echo "Doing OpenWrt Preinit\n"
- pi_indicate_led
+ set_state preinit
}
boot_hook_add preinit_main preinit_ip
indicate_regular_preinit() {
preinit_net_echo "Continuing with Regular Preinit\n"
- pi_indicate_led
+ set_state preinit_regular
}
boot_hook_add preinit_main indicate_regular_preinit
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_set_timer 50 50
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
[ "$status_led" = "status" ] && {
status_led_set_heartbeat
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
case $(ar71xx_board_name) in
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
+
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_set_timer 50 50
;;
+ preinit_regular)
+ status_led_set_timer 500 500
+ ;;
done)
if [ "${status_led/power}" != "$status_led" ]; then
status_led_on
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
+
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;
failsafe)
status_led_blink_failsafe
;;
+ preinit_regular)
+ status_led_blink_preinit_regular
+ ;;
done)
status_led_on
;;