03_gpio_switches 846 B

1234567891011121314151617181920212223242526272829303132
  1. . /lib/functions/uci-defaults.sh
  2. board_config_update
  3. board=$(board_name)
  4. case "$board" in
  5. mikrotik,routerboard-760igs)
  6. ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "497"
  7. ;;
  8. telco-electronics,x1)
  9. ucidef_add_gpio_switch "modem_reset" "Modem Reset" "496"
  10. ;;
  11. ubnt,edgerouter-x)
  12. ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"
  13. ;;
  14. ubnt,edgerouter-x-sfp)
  15. ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "400"
  16. ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "401"
  17. ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "402"
  18. ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "403"
  19. ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "404"
  20. ;;
  21. zyxel,wap6805)
  22. ucidef_add_gpio_switch "qtn_power" "Quantenna Module Power" "496" "1"
  23. ;;
  24. esac
  25. board_config_flush
  26. exit 0