01_leds 466 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. . /lib/functions/uci-defaults-new.sh
  3. . /lib/oxnas.sh
  4. board=$(oxnas_board_name)
  5. board_config_update
  6. case $board in
  7. stg-212)
  8. ucidef_set_led_default "power" "power" "zyxel:blue:status" "1"
  9. ucidef_set_led_usbdev "usb" "USB" "$1" "1-1"
  10. ;;
  11. kd20)
  12. ucidef_set_led_default "power" "power" "kd20:blue:status" "1"
  13. ;;
  14. pogoplugpro | pogoplugv3)
  15. ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"
  16. ;;
  17. esac
  18. board_config_flush
  19. exit 0