summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-bonding.pl2
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 );