From patchwork Thu Apr 11 15:01:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7728 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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4VFjZY6rhDz3wwq for ; Thu, 11 Apr 2024 15:01:25 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4VFjZV3TJwz4QP; Thu, 11 Apr 2024 15:01:22 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4VFjZV2ynkz30G4; Thu, 11 Apr 2024 15:01:22 +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 (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4VFjZP6CFMz32q4 for ; Thu, 11 Apr 2024 15:01:17 +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 (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4VFjZP4pPKz1Gx; Thu, 11 Apr 2024 15:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1712847677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6VYfav4TlGOirPOxQKpVPagLu692PZty3yfCxCIt1TE=; b=QF1aTTmUhz0ZZ0z+CRJ7GKoTuaLtkzQT/P3Cgg8lSDwHkbi3+yt/F7230lHn9cbCH0UUv+ Sv7UdyK+CYwfTe73keCpptZlOOt34zeqS7tOdPU99KwBnnbZ5l5ORjvQORJj46QfnJX8Sv GalI/qdRVJF8w4PAFbglkpxdQWkF4d3e/HHG9M5W3ns8VYgpkAyaFOjjYKvoOQSGJuoIby PFh1+VZE7tb+8Y+p6XOYwqEmRv6YvRdLIsSOGUofexnuQjUvaf4JJ9rwNxLFixMm/nAfga S8B9ZguARPx5XdTGKWUa8WxOgLS69CD3nbMY2sbxDbMp23XbAqLzeKHDjfPzTQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1712847677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6VYfav4TlGOirPOxQKpVPagLu692PZty3yfCxCIt1TE=; b=N3LZEZQvz45Y850qhtAbYikClDvYQE6ZKOmxj77uBl2zR9qZEWwNuXYEaDVnLh83/TNe4q cLbdg8DhvE0aWeCw== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 4/9] ip-up: Fixes bug12763 Date: Thu, 11 Apr 2024 17:01:03 +0200 Message-ID: <20240411150108.21573-4-adolf.belka@ipfire.org> In-Reply-To: <20240411150108.21573-1-adolf.belka@ipfire.org> References: <20240411150108.21573-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: HDODW2XYXVH37YY4FFOYY4UGSYF6PYPM X-Message-ID-Hash: HDODW2XYXVH37YY4FFOYY4UGSYF6PYPM X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: <> List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - This ensures that all ip route and ip rule commands are redirected to null if the output is not used to feed into a variable. - This will prevent any error messages related to empty iproute tables being displayed during boot if an empty table is accessed. Fixes: Bug#12763 Tested-by: Adolf Belka Signed-off-by: Adolf Belka --- src/ppp/ip-up | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppp/ip-up b/src/ppp/ip-up index 2e636e72d..5f4ee7726 100644 --- a/src/ppp/ip-up +++ b/src/ppp/ip-up @@ -33,7 +33,7 @@ echo -n "$4" > /var/ipfire/red/local-ipaddress echo -n "$5" > /var/ipfire/red/remote-ipaddress touch /var/ipfire/red/active -/sbin/ip route replace default via ${IPREMOTE} dev ppp0 +/sbin/ip route replace default via ${IPREMOTE} dev ppp0 >/dev/null 2>&1 run_subdir ${rc_base}/init.d/networking/red.up/ #Check if gateway has answerd to ping, if not replace with ping.ipfire.org