Preserve brctl pre-up options
authorJamie Cameron <jcameron@webmin.com>
Sat, 22 Jan 2011 18:39:43 +0000 (10:39 -0800)
committerJamie Cameron <jcameron@webmin.com>
Sat, 22 Jan 2011 18:39:43 +0000 (10:39 -0800)
net/debian-linux-lib.pl

index cf00e28..b30d259 100755 (executable)
@@ -211,7 +211,8 @@ foreach $iface (@ifaces) {
                # Found interface to change
                $found = 1;
                foreach my $o (@{$iface->[3]}) {
-                       if ($o->[0] eq 'gateway') {
+                       if ($o->[0] eq 'gateway' ||
+                           $o->[0] eq 'pre-up' && $o->[1] =~ /brctl/) {
                                push(@options, $o);
                                }
                        }