03_gpio_switches 764 Bytes
Newer Older
1
2
3
4
5
6
#!/bin/sh

. /lib/functions/uci-defaults.sh

board_config_update

7
board=$(board_name)
8
9

case "$board" in
10
mikrotik,routerboard-750gr3)
11
12
	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
	;;
13
14
15
telco-electronics,x1)
	ucidef_add_gpio_switch "modem_reset" "Modem Reset" "16"
	;;
16
ubnt,edgerouter-x)
17
	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"
18
	;;
19
ubnt,edgerouter-x-sfp)
20
21
22
23
24
	ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "400"
	ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "401"
	ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "402"
	ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "403"
	ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "404"
25
26
27
28
29
30
	;;
esac

board_config_flush

exit 0