From patchwork Fri Oct 18 14:59:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Weismueller X-Patchwork-Id: 2523 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46vq2q3lb1z3yYP for ; Fri, 18 Oct 2019 15:00:19 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46vq2p0CVtz2Kh; Fri, 18 Oct 2019 15:00:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46vq2n5m9Jz2yFT; Fri, 18 Oct 2019 15:00:17 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46vq2m2064z2xGM for ; Fri, 18 Oct 2019 15:00:16 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46vq2l02QZz2Kh; Fri, 18 Oct 2019 15:00:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1571410815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IOJ+/fySsX/ssMqud3+V8fQYgE4hc1wISNJUSrodcIM=; b=dCp/Y39e/g6xHNU4Lim/zRjN1dqR6LggvKq0YNRFmFe81kSZ5DKH7GGHnRJ1bEHd2OC4A/ a3f2r1UwF01rRMyNblV25zSEDZbJTOzNzqfQdt2tjBQaXJeotzz3FI3g3fhCVpFlA4yaj7 bNotfTENxOKGtQqAD9EHZXXzp6WifxlqDyA0kYIvDp+bWip0CLVT/1Nd0VL6/kguhsKN/4 ZWsc9lH8ri+0zmHzyGFQHuL5B2VQ0xZ6jtzYwxfbHMo7UQReSupQHjZLvFaaT50LuzzhWQ AGAIZaatiEugigfahI1z20N7KYm/aqQ23o+tFUd7GvJTTY7ngxknGp/NA9tA4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1571410815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IOJ+/fySsX/ssMqud3+V8fQYgE4hc1wISNJUSrodcIM=; b=9Ppu1PSwLiJKxQxjZy2rjmFowiCxb0Jk53D84UJ3wo4vpohQug7w3iGZjq9YyFJ+dM8z8V wI49/qv4LvnuGuBw== From: =?utf-8?q?Daniel_Weism=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] core137: Remove imq0 and unload imq module after QoS has been stopped Date: Fri, 18 Oct 2019 16:59:49 +0200 Message-Id: <20191018145949.15910-1-daniel.weismueller@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=dweismueller smtp.mailfrom=daniel.weismueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Daniel Weismüller --- config/rootfiles/core/137/update.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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