diag.sh 302 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2015 OpenWrt.org
  4. #
  5. . /lib/functions/leds.sh
  6. set_state() {
  7. status_led="led0"
  8. case "$1" in
  9. preinit)
  10. status_led_blink_preinit
  11. ;;
  12. failsafe)
  13. status_led_blink_failsafe
  14. ;;
  15. preinit_regular)
  16. status_led_blink_preinit_regular
  17. ;;
  18. done)
  19. status_led_on
  20. ;;
  21. esac
  22. }