mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fixes for CentOS 8
This commit is contained in:
@@ -429,7 +429,7 @@ if (&has_command("ifconfig")) {
|
||||
|
||||
if ($a->{'virtual'} ne "") {
|
||||
# Shutdown virtual interface by setting address to 0
|
||||
my $out = &backquote_logged("ifconfig $name 0 2>&1");
|
||||
&system_logged("ifconfig $name 0 >/dev/null 2>&1");
|
||||
}
|
||||
# Delete all v6 addresses
|
||||
for(my $i=0; $i<@{$a->{'address6'}}; $i++) {
|
||||
|
||||
@@ -321,9 +321,9 @@ else {
|
||||
$conf{'IPV6ADDR_SECONDARIES'} = join(" ", @ip6s);
|
||||
}
|
||||
if ($b->{'fullname'} =~ /^br(\d+)$/) {
|
||||
&has_command("brctl") ||
|
||||
&error("Bridges cannot be created unless the brctl ".
|
||||
"command is installed");
|
||||
&has_command("brctl") || &has_command("ip") ||
|
||||
&error("Bridges cannot be created unless the ".
|
||||
"brctl command is installed");
|
||||
$conf{'TYPE'} = 'Bridge';
|
||||
}
|
||||
if ($b->{'fullname'} =~ /^bond(\d+)$/) {
|
||||
|
||||
Reference in New Issue
Block a user