ramips: add support for TP-Link TL-WR842N v5
[openwrt/openwrt.git] / target / linux / ramips / 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 ubnt-erx)
11 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
12 ;;
13 ubnt-erx-sfp)
14 ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "496"
15 ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "497"
16 ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "498"
17 ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
18 ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
19 ;;
20 esac
21
22 board_config_flush
23
24 exit 0