diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/vyatta-bonding.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vyatta-bonding.pl b/scripts/vyatta-bonding.pl index 53e6bffa..5e90948b 100755 --- a/scripts/vyatta-bonding.pl +++ b/scripts/vyatta-bonding.pl @@ -64,6 +64,8 @@ sub get_slaves { or die "$intf is not a bonding interface"; my $slaves = <$f>; close $f; + return unless $slaves; + chomp $slaves; return split( ' ', $slaves ); |
