]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
network: Add support for some more auxiliary zones
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 29 Jul 2025 14:42:19 +0000 (14:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Aug 2025 15:43:45 +0000 (15:43 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/udev/network-hotplug-master
config/udev/network-hotplug-rename

index b61b657bb80fc05c0aa2a0cdc27d8f3111e94638..34cec46a6b6a700bf154975082803b04071a7272 100644 (file)
@@ -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}"
index f27eecae6e3d842f80156329feccf19cfa0cdbdf..b4e694ed347063ef07b072b626a5522b2ff31d5b 100644 (file)
@@ -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)"