diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-15 10:08:16 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-15 10:08:16 -0700 |
commit | e24523cda77d3277844bfe638c086bcf85348f7d (patch) | |
tree | fc7ade77758bb9ccc696e30fa2029b1389117dfd /scripts/vyatta-interfaces.pl | |
parent | 094222202c56bff9ddabf591a9429fea19e3d185 (diff) | |
download | vyatta-cfg-quagga-e24523cda77d3277844bfe638c086bcf85348f7d.tar.gz vyatta-cfg-quagga-e24523cda77d3277844bfe638c086bcf85348f7d.zip |
Remove sudo from ip command
No longer need sudo on ip because of cap_net_admin
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 8 |
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; |