diff mbox series

[1/5] base-files: preinit: rename preinit port config

Message ID mailman.133955.1728987185.1280.openwrt-devel@lists.openwrt.org
State New
Headers show
Series [1/5] base-files: preinit: rename preinit port config | expand

Commit Message

Evan Jobling Oct. 15, 2024, 10:12 a.m. UTC
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.
Rename preinit helper function to remove ambiguity
in preparation for other port config.
For example, a second labelling pass, or
for altname, alias and conduit config etc.

Signed-off-by: Evan Jobling <evan.jobling@mslsc.com.au>
---
 package/base-files/files/lib/preinit/10_indicate_preinit | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/package/base-files/files/lib/preinit/10_indicate_preinit b/package/base-files/files/lib/preinit/10_indicate_preinit
index a8f7758c84..627b56e41d 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -63,7 +63,7 @@  preinit_config_switch() {
 	json_select ..
 }
 
-preinit_config_port() {
+preinit_config_port_bypath() {
 	local original
 
 	local netdev="$1"
@@ -109,7 +109,7 @@  preinit_config_board() {
 		json_select "network_device"
 			json_select "$netdev"
 				json_get_vars path path
-				[ -n "$path" ] && preinit_config_port "$netdev" "$path"
+				[ -n "$path" ] && preinit_config_port_bypath "$netdev" "$path"
 			json_select ..
 		json_select ..
 	done