[PATCH 1/5] base-files: preinit: rename preinit port config
Evan Jobling
evan.jobling at mslsc.com.au
Tue Oct 15 03:12:57 PDT 2024
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 at mslsc.com.au>
---
package/base-files/files/lib/preinit/10_indicate_preinit | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
--
2.39.5
More information about the openwrt-devel
mailing list