diff --git a/net/linux-lib.pl b/net/linux-lib.pl index e2538f18c..c86b931a4 100755 --- a/net/linux-lib.pl +++ b/net/linux-lib.pl @@ -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++) { diff --git a/net/redhat-linux-lib.pl b/net/redhat-linux-lib.pl index c4dc48ed0..bf1623b78 100755 --- a/net/redhat-linux-lib.pl +++ b/net/redhat-linux-lib.pl @@ -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+)$/) {