diff options
Diffstat (limited to 'target/linux/ath79/base-files/etc/board.d/03_gpio_switches')
-rwxr-xr-x | target/linux/ath79/base-files/etc/board.d/03_gpio_switches | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ath79/base-files/etc/board.d/03_gpio_switches b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches new file mode 100755 index 0000000000..4af9845b65 --- /dev/null +++ b/target/linux/ath79/base-files/etc/board.d/03_gpio_switches @@ -0,0 +1,20 @@ +#!/bin/sh +# +# Copyright (C) 2018 OpenWrt.org +# + +. /lib/functions/uci-defaults.sh + +board_config_update + +board=$(board_name) + +case "$board" in +ubnt,nanostation-ac) + ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3" + ;; +esac + +board_config_flush + +exit 0 |