[RFC 3/6] base-files: preinit: rename preinit port config
Evan Jobling
evan.jobling at mslsc.com.au
Wed Oct 9 01:07:40 PDT 2024
Rename preinit helper function as other port
config will occur with altname, alias and conduit.
The name is due to only taking a path argument.
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 f1b970e400..380728f8d6 100644
--- a/package/base-files/files/lib/preinit/10_indicate_preinit
+++ b/package/base-files/files/lib/preinit/10_indicate_preinit
@@ -76,7 +76,7 @@ preinit_config_altname() {
ip link set "$original" altname "$netdev"
}
-preinit_config_port() {
+preinit_config_port_path() {
local original
local netdev="$1"
@@ -122,7 +122,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_path "$netdev" "$path"
json_select ..
json_select ..
done
--
2.39.5
More information about the openwrt-devel
mailing list