01_leds 559 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. . /lib/functions/uci-defaults.sh
  3. . /lib/oxnas.sh
  4. board=$(oxnas_board_name)
  5. board_config_update
  6. case $board in
  7. akitio)
  8. ucidef_set_led_default "status" "status" "akitio:red:status" "0"
  9. ;;
  10. stg212)
  11. ucidef_set_led_default "power" "power" "zyxel:blue:status" "1"
  12. ucidef_set_led_usbdev "usb" "USB" "zyxel:orange:copy" "1-1"
  13. ;;
  14. kd20)
  15. ucidef_set_led_default "power" "power" "kd20:blue:status" "1"
  16. ;;
  17. pogoplug-pro | pogoplug-v3)
  18. ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"
  19. ;;
  20. esac
  21. board_config_flush
  22. exit 0