summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-qos.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index b6c2f92..0fd003f 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -254,11 +254,12 @@ sub update_ingress {
die "$device not present\n"
unless (-d "/sys/class/net/$device");
- my $ingress = ingress_policy( $device );
- return unless $ingress;
-
# Drop existing ingress and recreate
system("sudo tc qdisc del dev $device ingress 2>/dev/null");
+
+ my $ingress = ingress_policy( $device );
+ return unless $ingress;
+
system("sudo tc qdisc add dev $device ingress") == 0
or die "Can not set ingress qdisc";