vlans: Allow RED to be a virtual network device.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Jun 2013 11:10:46 +0000 (13:10 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Jun 2013 11:10:46 +0000 (13:10 +0200)
src/initscripts/init.d/network-vlans

index 2fdfe9ebbcf48391fabef127689c4f5313a483df..c31f3e1f284a025b07b0267fbf43c0ff019bc6f0 100644 (file)
@@ -31,13 +31,18 @@ eval $(/usr/local/bin/readhash ${CONFIG_FILE})
 # This is start or stop.
 action=${1}
 
-for interface in green0 blue0 orange0; do
+for interface in green0 red0 blue0 orange0; do
        case "${interface}" in
                green*)
                        PARENT_DEV=${GREEN_PARENT_DEV}
                        VLAN_ID=${GREEN_VLAN_ID}
                        MAC_ADDRESS=${GREEN_MAC_ADDRESS}
                        ;;
+               red*)
+                       PARENT_DEV=${RED_PARENT_DEV}
+                       VLAN_ID=${RED_VLAN_ID}
+                       MAC_ADDRESS=${RED_MAC_ADDRESS}
+                       ;;
                blue*)
                        PARENT_DEV=${BLUE_PARENT_DEV}
                        VLAN_ID=${BLUE_VLAN_ID}