03_gpio_switches 367 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2018 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. board_config_update
  7. board=$(board_name)
  8. case "$board" in
  9. dlink,dir-825-c1|\
  10. dlink,dir-835-a1)
  11. ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
  12. ;;
  13. ubnt,nanostation-ac)
  14. ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
  15. ;;
  16. esac
  17. board_config_flush
  18. exit 0