82bbdd24f674e7512e493d71495e40286e1fc14c
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 03_gpio_switches
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 board=$(board_name)
8
9 case "$board" in
10 mikrotik,routerboard-760igs)
11 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "497"
12 ;;
13 telco-electronics,x1)
14 ucidef_add_gpio_switch "modem_reset" "Modem Reset" "496"
15 ;;
16 ubnt,edgerouter-x)
17 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"
18 ;;
19 ubnt,edgerouter-x-sfp)
20 ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "400"
21 ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "401"
22 ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "402"
23 ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "403"
24 ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "404"
25 ;;
26 zyxel,wap6805)
27 ucidef_add_gpio_switch "qtn_power" "Quantenna Module Power" "496" "1"
28 ;;
29 esac
30
31 board_config_flush
32
33 exit 0