mirror of
https://github.com/webmin/webmin.git
synced 2025-08-17 19:06:28 +00:00
Allow bridge over VLAN, and always ifdown before ifup (thanks to Caspar Smit)
This commit is contained in:
@ -105,7 +105,7 @@ if (&use_ifup_command($a)) {
|
||||
}
|
||||
else { $cmd .= "ifdown $a->{'physical'}" . "." . $a->{'vlanid'}; }
|
||||
}
|
||||
elsif ($a->{'up'}) { $cmd .= "ifup $a->{'fullname'}"; }
|
||||
elsif ($a->{'up'}) { $cmd .= "ifdown $a->{'fullname'}\; ifup $a->{'fullname'}"; }
|
||||
else { $cmd .= "ifdown $a->{'fullname'}"; }
|
||||
}
|
||||
else {
|
||||
|
@ -299,7 +299,7 @@ else {
|
||||
# Save bridge settings
|
||||
if ($b->{'bridge'}) {
|
||||
if ($in{'bridgeto'}) {
|
||||
$in{'bridgeto'} =~ /^eth\d+$/ ||
|
||||
($in{'bridgeto'} =~ /^eth\d+$/ || $in{'bridgeto'} =~ /^eth\d+.\d+$/) ||
|
||||
&error($text{'bifc_ebridgeto'});
|
||||
($bt) = grep { $_->{'fullname'} eq $in{'bridgeto'} }
|
||||
@boot;
|
||||
|
Reference in New Issue
Block a user