[10/17] QoS: Suppress an error message when cleaning up from previous runs

Message ID 20191014164627.18516-10-michael.tremer@ipfire.org
State Accepted
Commit cebad6e2b938071e1da2bea9dfa3fe09169ee5a0
Headers
Series [01/17] QoS: Do not manually load iptables modules |

Commit Message

Michael Tremer Oct. 14, 2019, 4:46 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/qos/makeqosscripts.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/config/qos/makeqosscripts.pl b/config/qos/makeqosscripts.pl
index 386a6bffe..f2c969371 100644
--- a/config/qos/makeqosscripts.pl
+++ b/config/qos/makeqosscripts.pl
@@ -405,7 +405,7 @@  print <<END
 	### $qossettings{'IMQ_DEV'}
 	###
 
-	tc qdisc del dev $qossettings{'RED_DEV'} ingress
+	tc qdisc del dev $qossettings{'RED_DEV'} ingress >/dev/null 2>&1
 	tc qdisc add dev $qossettings{'RED_DEV'} handle ffff: ingress
 
 	### BRING UP $qossettings{'IMQ_DEV'}