From d44c90c3acd42a4193e76fb8900af5f82d2a7cd0 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sat, 6 Sep 2014 14:07:29 -0700 Subject: [PATCH] What if both ip and ifconfig commands exist --- net/linux-lib.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/linux-lib.pl b/net/linux-lib.pl index da9394c63..87291b7da 100755 --- a/net/linux-lib.pl +++ b/net/linux-lib.pl @@ -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++) {