summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-15 10:08:16 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-15 10:08:16 -0700
commite24523cda77d3277844bfe638c086bcf85348f7d (patch)
treefc7ade77758bb9ccc696e30fa2029b1389117dfd /scripts
parent094222202c56bff9ddabf591a9429fea19e3d185 (diff)
downloadvyatta-cfg-system-e24523cda77d3277844bfe638c086bcf85348f7d.tar.gz
vyatta-cfg-system-e24523cda77d3277844bfe638c086bcf85348f7d.zip
Remove sudo from ip command
No longer need sudo on ip because of cap_net_admin
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-interfaces.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index d5abaa36..a303c82c 100755
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -314,14 +314,14 @@ sub update_mac {
if (POSIX::strtoul($flags) & 1) {
# NB: Perl 5 system return value is bass-ackwards
- system "sudo ip link set $intf down"
+ system "ip link set $intf down"
and die "Could not set $intf down ($!)\n";
- system "sudo ip link set $intf address $mac"
+ system "ip link set $intf address $mac"
and die "Could not set $intf address ($!)\n";
- system "sudo ip link set $intf up"
+ system "ip link set $intf up"
and die "Could not set $intf up ($!)\n";
} else {
- system "sudo ip link set $intf address $mac"
+ system "ip link set $intf address $mac"
and die "Could not set $intf address ($!)\n";
}
exit 0;