ath79: Add support for Ubiquiti Nanostation AC
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / base-files / etc / board.d / 03_gpio_switches
1 #!/bin/sh
2 #
3 # Copyright (C) 2018 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 board=$(board_name)
11
12 case "$board" in
13 ubnt,nanostation-ac)
14 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
15 ;;
16 esac
17
18 board_config_flush
19
20 exit 0