Skip to content
Snippets Groups Projects
Commit cc59f31e authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

ar71xx: convert gpio switch config to board.d


Signed-off-by: default avatarJo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47763
parent 08078df8
No related branches found
No related tags found
No related merge requests found
...@@ -3,23 +3,25 @@ ...@@ -3,23 +3,25 @@
# Copyright (C) 2015 OpenWrt.org # Copyright (C) 2015 OpenWrt.org
# #
. /lib/functions/uci-defaults.sh . /lib/functions/uci-defaults-new.sh
. /lib/ar71xx.sh . /lib/ar71xx.sh
board_config_update
board=$(ar71xx_board_name) board=$(ar71xx_board_name)
case "$board" in case "$board" in
nanostation-m) nanostation-m)
ucidef_set_gpio_switch "poe_passthrough" "PoE Passthrough" "8" ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
;; ;;
nanostation-m-xw) nanostation-m-xw)
ucidef_set_gpio_switch "poe_passthrough" "PoE Passthrough" "2" ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
;; ;;
cpe510) cpe510)
ucidef_set_gpio_switch "poe_passthrough" "PoE Passthrough" "20" ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
;; ;;
esac esac
ucidef_commit_gpio_switches board_config_flush
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment