Fixes for CentOS 8

This commit is contained in:
Jamie Cameron
2022-10-30 22:05:17 -07:00
parent e5e4b65faf
commit f1b2adaa59
2 changed files with 4 additions and 4 deletions

View File

@@ -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++) {

View File

@@ -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+)$/) {