[3/6] network: Rename the bridge hotplug script

Message ID 20250729144220.1332214-3-michael.tremer@ipfire.org
State New
Headers
Series [1/6] linux: Don't create bond0 when bonding is being loaded |

Commit Message

Michael Tremer 29 Jul 2025, 2:42 p.m. UTC
Since it is now creating more than just bridges, this had to have a new
name.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/rootfiles/common/udev                                  | 2 +-
 config/udev/60-net.rules                                      | 4 ++--
 .../udev/{network-hotplug-bridges => network-hotplug-master}  | 0
 lfs/udev                                                      | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
 rename config/udev/{network-hotplug-bridges => network-hotplug-master} (100%)
  

Patch

diff --git a/config/rootfiles/common/udev b/config/rootfiles/common/udev
index 3eea43718..94da6f772 100644
--- a/config/rootfiles/common/udev
+++ b/config/rootfiles/common/udev
@@ -49,7 +49,7 @@  lib/udev/hwdb.d
 lib/udev/iocost
 lib/udev/mtd_probe
 lib/udev/network-aqm
-lib/udev/network-hotplug-bridges
+lib/udev/network-hotplug-master
 lib/udev/network-hotplug-rename
 lib/udev/network-hotplug-vlan
 lib/udev/network-offloading
diff --git a/config/udev/60-net.rules b/config/udev/60-net.rules
index fff7513bc..f4850b9dd 100644
--- a/config/udev/60-net.rules
+++ b/config/udev/60-net.rules
@@ -6,5 +6,5 @@  ACTION=="add", SUBSYSTEM=="net", PROGRAM="/lib/udev/network-hotplug-rename", RES
 # that has just come up.
 ACTION=="add", SUBSYSTEM=="net", RUN+="/lib/udev/network-hotplug-vlan"
 
-# Call a script that will set up zones as bridges
-ACTION=="add", SUBSYSTEM=="net", RUN+="/lib/udev/network-hotplug-bridges"
+# Call a script that will set up interfaces that have a master interface (bridges, bonding, ..)
+ACTION=="add", SUBSYSTEM=="net", RUN+="/lib/udev/network-hotplug-master"
diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplug-master
similarity index 100%
rename from config/udev/network-hotplug-bridges
rename to config/udev/network-hotplug-master
diff --git a/lfs/udev b/lfs/udev
index 19e0557a3..2b1be02cd 100644
--- a/lfs/udev
+++ b/lfs/udev
@@ -148,8 +148,8 @@  $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 		/lib/udev/network-hotplug-rename
 	install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-vlan \
 		/lib/udev/network-hotplug-vlan
-	install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-bridges \
-		/lib/udev/network-hotplug-bridges
+	install -v -m 755 $(DIR_SRC)/config/udev/network-hotplug-master \
+		/lib/udev/network-hotplug-master
 	install -v -m 644 $(DIR_SRC)/config/udev/60-net.rules \
 		/lib/udev/rules.d