ramips: split base-files into subtargets
[oweals/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,rb750gr3)
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 ubiquiti,edgerouterx)
17         ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
18         ;;
19 ubiquiti,edgerouterx-sfp)
20         ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "496"
21         ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "497"
22         ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "498"
23         ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
24         ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
25         ;;
26 esac
27
28 board_config_flush
29
30 exit 0