9a1be1a8fa676114162fe79ce502788b7af5d729
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 03_gpio_switches
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults-new.sh
7 . /lib/ar71xx.sh
8
9 board_config_update
10
11 board=$(ar71xx_board_name)
12
13 case "$board" in
14 nanostation-m)
15 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
16 ;;
17 nanostation-m-xw)
18 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
19 ;;
20 cpe510)
21 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
22 ;;
23 esac
24
25 board_config_flush
26
27 exit 0