]> git.proxmox.com Git - pve-manager.git/commitdiff
bridgevlan: cleanup, remove useless case statement
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Sep 2015 08:46:29 +0000 (10:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Sep 2015 08:46:29 +0000 (10:46 +0200)
bridgevlan

index ea7161728213a33f729dda64316309cc7b420b6e..ea0435757113bb504d30ecbd14e097280d50a27d 100755 (executable)
@@ -38,17 +38,13 @@ do
   for port in $i
   do
     if [ "$MODE" = "start" ] && [ -d /sys/class/net/$IFACE/brif/$port ]; then
-      case "$port" in
-       *)
-          # we allow vlan to pass through attached interface
-          if [ -n "$IF_BRIDGE_VIDS" ]
-         then
+        # we allow vlan to pass through attached interface
+        if [ -n "$IF_BRIDGE_VIDS" ]
+       then
             bridge vlan add dev $port vid $IF_BRIDGE_VIDS
-         else
+       else
             bridge vlan add dev $port vid 2-4094
-          fi
-       ;;
-      esac
+        fi
     fi
   done
 done