Fix missing POE for nanostation-m (#799)

This commit is contained in:
Tim Wilkinson 2023-04-19 19:19:58 -07:00 committed by GitHub
parent 5da53f5911
commit b16a6c4b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -19,3 +19,25 @@
;;
ubnt,nanostation-m)
ucidef_set_interface_lan "eth0 eth1"
--- /dev/null
+++ b/target/linux/ath79/tiny/base-files/etc/board.d/03_gpio_switches
@@ -0,0 +1,19 @@
+#
+# Copyright (C) 2018 OpenWrt.org
+#
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+board=$(board_name)
+
+case "$board" in
+ubnt,nanostation-m)
+ ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
+ ;;
+esac
+
+board_config_flush
+
+exit 0