What if both ip and ifconfig commands exist

This commit is contained in:
Jamie Cameron
2014-09-06 14:07:29 -07:00
parent 60f498345a
commit d44c90c3ac

View File

@ -315,8 +315,7 @@ if ($a->{'virtual'} eq '' && &has_command("ifconfig")) {
&error("Failed to add IPv6 address : $out") if ($?);
}
}
if ($a->{'virtual'} eq '' && &has_command("ip")) {
elsif ($a->{'virtual'} eq '' && &has_command("ip")) {
# Remove old IPv6 addresses
if ($old) {
for(my $i=0; $i<@{$old->{'address6'}}; $i++) {