01_leds 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2012-2014 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/kirkwood.sh
  7. board=$(kirkwood_board_name)
  8. case "$board" in
  9. "dockstar")
  10. ucidef_set_led_default "health" "health" "status:green:health" "1"
  11. ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
  12. ;;
  13. "ea3500")
  14. ucidef_set_led_default "power" "power" "ea3500:green:power" "1"
  15. ;;
  16. "ea4500")
  17. ucidef_set_led_default "health" "health" "ea4500:white:health" "1"
  18. ucidef_set_led_default "pulse" "pulse" "ea4500:white:pulse" "1"
  19. ;;
  20. "goflexhome" | \
  21. "goflexnet")
  22. ucidef_set_led_default "health" "health" "status:green:health" "1"
  23. ucidef_set_led_default "fault" "fault" "status:orange:fault" "0"
  24. ;;
  25. "ib62x0")
  26. ucidef_set_led_default "health" "health" "ib62x0:green:os" "1"
  27. ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1"
  28. ;;
  29. "pogo_e02")
  30. ucidef_set_led_default "health" "health" "status:green:health" "1"
  31. ucidef_set_led_default "fault" "fault" "status:orange:fault" "1"
  32. ;;
  33. "guruplug-server-plus")
  34. ucidef_set_led_timer "health" "health" "guruplug:red:health" "200" "800"
  35. ;;
  36. "sheevaplug" | \
  37. "sheevaplug-esata")
  38. ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800"
  39. ;;
  40. *)
  41. ;;
  42. esac
  43. ucidef_commit_leds
  44. exit 0