From patchwork Tue May 23 17:23:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 6905 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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4QQh4b0nJpz3wlf for ; Tue, 23 May 2023 17:23:59 +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) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4QQh4Z3TB4z6Lk; Tue, 23 May 2023 17:23:58 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4QQh4Z2phKz30Kd; Tue, 23 May 2023 17:23:58 +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 "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4QQh4X07k2z2ySG for ; Tue, 23 May 2023 17:23:56 +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) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4QQh4W53srz9Tr; Tue, 23 May 2023 17:23:55 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1684862635; 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=3D269T2R+UWsS2P/0k9EPk7pIVAKVcT420fEOyqwVPU=; b=h4UNYW0djEv6k+b0650Li4N1rMcLg4MKbroS9wGSpWxR/cPNzmtGxLNMxnaOZaR9i5GfAY v53Qx9T+ToqQ04BQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1684862635; 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=3D269T2R+UWsS2P/0k9EPk7pIVAKVcT420fEOyqwVPU=; b=uki69sS5ZdtLZaAR7bJRsVrPG8o2gAi3MV3hxK0A1t3bc4hL0nCsMqXXYo100kDZUMkJcF pIcE84r1FCKR8sJYrZT0gPshEqB7YXyRbKbeQmQhgALWgAzWftAJZspizZJ7kKQq+oONNw FEo8gkHm//LnZZALiO/Fy+QUEHxwCGbQfdBc4zcd4C4lMzlBB8yvVgcm+YGvR38cg3m3hg RiZo9ZkQBir0m114ODoXX0lvEJ2G3xFKbzs5BGpKyT4lT/bQoS/M7DdUbiNpbaFPZZNAX6 I3lyAe1Eo9Ltj+fEpjj5Da1yOJiwxNWDOGQKemFQIA0FAhEAxFJ3T24bU7+V5Q== From: Jonatan Schlag To: development@lists.ipfire.org Subject: [Patch RFC 06/15] network scripts: remove check for AUTOCONNECT Date: Tue, 23 May 2023 19:23:06 +0200 Message-Id: <20230523172314.7826-7-jonatan.schlag@ipfire.org> In-Reply-To: <20230523172314.7826-1-jonatan.schlag@ipfire.org> References: <20230523172314.7826-1-jonatan.schlag@ipfire.org> MIME-Version: 1.0 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" This setting is also old (2007) and cannot be set via the webinterface anymore. So why checking for something, which can only be true. Signed-off-by: Jonatan Schlag --- src/initscripts/system/network | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/initscripts/system/network b/src/initscripts/system/network index 146b3fda8..6a47456f3 100644 --- a/src/initscripts/system/network +++ b/src/initscripts/system/network @@ -63,7 +63,7 @@ case "${DO}" in if [ "$red" == "1" ]; then # Remove possible leftover files rm -f /var/ipfire/red/{active,device,dial-on-demand,dns1,dns2,local-ipaddress,remote-ipaddress,resolv.conf} - [ "$AUTOCONNECT" == "off" ] || /etc/rc.d/init.d/networking/red start + /etc/rc.d/init.d/networking/red start fi /etc/rc.d/init.d/static-routes start