The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
--- Begin Message ---
Add helper function for setting altname in preinit.

Note that using this function would require an image
to have ip-full (under network, routing and  redirection)
in the make config.

Signed-off-by: Evan Jobling <evan.jobl...@mslsc.com.au>
---
 .../files/lib/preinit/10_indicate_preinit           | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit 
b/package/base-files/files/lib/preinit/10_indicate_preinit
index a8f7758c84..f1b970e400 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -63,6 +63,19 @@ preinit_config_switch() {
        json_select ..
 }
 
+preinit_config_altname() {
+       local original
+
+       local netdev="$1"
+       local altname="$2"
+
+       [ -d "/sys/class/net/$altname" ] && return
+
+       [ "$netdev" = "$altname" ] && return
+
+       ip link set "$original" altname "$netdev"
+}
+
 preinit_config_port() {
        local original
 
-- 
2.39.5



--- End Message ---
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to