From 30abce604828b60070b0eace83ddf67fd238df18 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 23 Aug 2011 15:58:02 -0500 Subject: Bugfix 7461: Fix syntax problem when setting a mac address --- scripts/vyatta-interfaces.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index 0365266c..c4d04e7a 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -233,7 +233,7 @@ sub update_mac { exit 0 if (lc($oldmac) eq lc($mac)); # try the direct approach - if (system "ip link set $name address $mac" == 0) { + if (system("ip link set $name address $mac") == 0) { exit 0; } elsif ($intf->up()) { # some hardware can not change MAC address if up -- cgit v1.2.3