[5/6] network: Add support for some more auxiliary zones

Message ID 20250729144220.1332214-5-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
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/udev/network-hotplug-master | 2 +-
 config/udev/network-hotplug-rename | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/config/udev/network-hotplug-master b/config/udev/network-hotplug-master
index b61b657bb..34cec46a6 100644
--- a/config/udev/network-hotplug-master
+++ b/config/udev/network-hotplug-master
@@ -31,7 +31,7 @@  detect_zone() {
 	intf="${intf^^}"
 
 	local zone
-	for zone in GREEN BLUE ORANGE RED; do
+	for zone in GREEN BLUE ORANGE RED INTF0 INTF1 INTF2 INTF3; do
 		# Try to find if INTERFACE is the *phys version of a zone
 		if [ "${intf}" = "${zone}" ]; then
 			echo "${zone}"
diff --git a/config/udev/network-hotplug-rename b/config/udev/network-hotplug-rename
index f27eecae6..b4e694ed3 100644
--- a/config/udev/network-hotplug-rename
+++ b/config/udev/network-hotplug-rename
@@ -57,7 +57,7 @@  fi
 eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
 
 # Standard zones
-ZONES="RED GREEN ORANGE BLUE"
+ZONES="RED GREEN ORANGE BLUE INTF0 INTF1 INTF2 INTF3"
 
 # Determine the address of INTERFACE
 ADDRESS="$(</sys/class/net/${INTERFACE}/address)"