24bfcb205196f9ae3045fff762e5d6edd15a673c
[openwrt/staging/chunkeey.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-750gr3)
11 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
12 ;;
13 telco-electronics,x1)
14 ucidef_add_gpio_switch "modem_reset" "Modem Reset" "16"
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 esac
27
28 board_config_flush
29
30 exit 0