summaryrefslogtreecommitdiff
path: root/scripts/vyatta-interfaces.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-xscripts/vyatta-interfaces.pl2
1 files changed, 1 insertions, 1 deletions
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