From b16a6c4b85dadfca032863f8575bb44da874d15f Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 19 Apr 2023 19:19:58 -0700 Subject: [PATCH] Fix missing POE for nanostation-m (#799) --- patches/749-fix-tiny.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/patches/749-fix-tiny.patch b/patches/749-fix-tiny.patch index 81e708f3..380b9182 100644 --- a/patches/749-fix-tiny.patch +++ b/patches/749-fix-tiny.patch @@ -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