summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-23 15:58:02 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-23 15:58:02 -0500
commitc591c8382db2ff58eadf595c9a2c8dd134256455 (patch)
treed5a7bb1e0f5dac2f2df97f9b98a303667f9f6805
parente014e07784dde5092fa0bae14cca6113586a2802 (diff)
downloadvyatta-cfg-system-c591c8382db2ff58eadf595c9a2c8dd134256455.tar.gz
vyatta-cfg-system-c591c8382db2ff58eadf595c9a2c8dd134256455.zip
Bugfix 7461: Fix syntax problem when setting a mac address
-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