diag.sh 301 B

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