diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-08-25 20:19:04 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-08-25 20:19:04 +0200 |
commit | 7f5df3ea03fe410f781478aeffc201537756b040 (patch) | |
tree | dfcf9ac77e832e1bc68ea7f8aeb50fbea092dcec /scripts/vyatta-bonding.pl | |
parent | ff172c743e5d732cad083c075c79485849913b4d (diff) | |
download | vyatta-cfg-system-7f5df3ea03fe410f781478aeffc201537756b040.tar.gz vyatta-cfg-system-7f5df3ea03fe410f781478aeffc201537756b040.zip |
T797: add sudo to ip command calls in other interface types.
Diffstat (limited to 'scripts/vyatta-bonding.pl')
-rwxr-xr-x | scripts/vyatta-bonding.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-bonding.pl b/scripts/vyatta-bonding.pl index 9c9eb995..24182af3 100755 --- a/scripts/vyatta-bonding.pl +++ b/scripts/vyatta-bonding.pl @@ -144,13 +144,13 @@ sub get_irq_affinity { sub if_down { my $intf = shift; - system "ip link set dev $intf down" + system "sudo ip link set dev $intf down" and die "Could not set $intf up ($!)\n"; } sub if_up { my $intf = shift; - system "ip link set dev $intf up" + system "sudo ip link set dev $intf up" and die "Could not set $intf up ($!)\n"; my $smp_affinity = get_irq_affinity($intf); |