core137: Remove imq0 and unload imq module after QoS has been stopped

Message ID 20191018145949.15910-1-daniel.weismueller@ipfire.org
State Staged
Commit f48920d84f72235c5141e32772d5c8a447f9900e
Headers show
Series
  • core137: Remove imq0 and unload imq module after QoS has been stopped
Related show

Commit Message

Daniel Weismüller Oct. 18, 2019, 2:59 p.m. UTC
Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
---
 config/rootfiles/core/137/update.sh | 6 ++++++
 1 file changed, 6 insertions(+)

Patch

diff --git a/config/rootfiles/core/137/update.sh b/config/rootfiles/core/137/update.sh
index da87f9430..dcbd8112a 100644
--- a/config/rootfiles/core/137/update.sh
+++ b/config/rootfiles/core/137/update.sh
@@ -83,6 +83,12 @@  rm -rf /lib/modules
 # Stop services
 /usr/local/bin/qosctrl stop
 
+# Delete imq0 if it is still present after QoS has been stopped
+if [ -d "/sys/class/net/imq0" ]; then
+	ip link del dev imq0
+	modprobe -r imq
+fi
+
 # Extract files
 extract_files