summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-qos.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index eb04ec8..487fdc6 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -155,6 +155,12 @@ sub update_interface {
my $shaper = make_policy( $policy, $name, $direction );
exit 1 unless $shaper;
+ if ( ! -d "/sys/class/net/$device" ) {
+ warn "$device not present yet, qos-policy will be applied later\n";
+ return;
+ }
+
+
# Remove old policy
delete_interface( $device, $direction );