1#!/bin/sh
2#
3# Copyright (C) 2015 OpenWrt.org
4#
5
6. /lib/functions/uci-defaults.sh
7. /lib/ar71xx.sh
8
9board_config_update
10
11board=$(ar71xx_board_name)
12
13case "$board" in
14nanostation-m)
15	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
16	;;
17nanostation-m-xw)
18	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
19	;;
20cpe210|\
21cpe510)
22	ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
23	;;
24rb-912uag-2hpnd|\
25rb-912uag-5hpnd)
26	ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "52"
27	;;
28esac
29
30board_config_flush
31
32exit 0
33