From patchwork Tue Aug 29 08:52:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonatan Schlag X-Patchwork-Id: 7128 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 4RZh5r0FDVz3wtG for ; Tue, 29 Aug 2023 08:53:04 +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 4RZh5q007yz2TZ; Tue, 29 Aug 2023 08:53:02 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4RZh5p6fCRz2xkr; Tue, 29 Aug 2023 08:53:02 +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 4RZh5m3tbbz2xhG for ; Tue, 29 Aug 2023 08:53:00 +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 4RZh5m285kzhp; Tue, 29 Aug 2023 08:53:00 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1693299180; 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=8CdRlO5joGRo+ZYCPbAejHBDX2efFF0asJH38lEjjHQ=; b=yMTJW3pTq8zSWP7quKz019YCniB70dVjJAAu57foirPJnPghy/5/KqkGBYQLmil8YoG/0s 2/VaEETQ3pvvx5Aw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1693299180; 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=8CdRlO5joGRo+ZYCPbAejHBDX2efFF0asJH38lEjjHQ=; b=Jp7WHNeHtGQzL1g/NszxAR9iAOSkcYALwNI8lDUHvYmsXxBbszh/a3lDnBC2fNx0G+qAUk 4us1Kx40T1lNDsE6iahCJTIkiyXCIwp9NDa+DwM/ZNnuox0LFlPFU1a2av9rExx0B0gQeN FViAXp5E6sBrokoHK/CUZep+Qo1StwN6IXNMhNt5cZhK57rCY85+CV/b60HYn1F1wry0KY yQcRy2TtxXQ7NnlY66y4MhM4tb4of7fwQPae5l/MjIU7sfMz5mmvl5ZnFyAraFdGqd82t9 DiPvrVDNWG+YAfSD+1AwihbmUv0nbhrAG4GDK1H7nHLIU1fsbQB2VBX0Wm+Cpg== From: Jonatan Schlag To: development@lists.ipfire.org Subject: [PATCH 4/5] network scripts: remove check for AUTOCONNECT Date: Tue, 29 Aug 2023 10:52:40 +0200 Message-Id: <20230829085241.6985-4-jonatan.schlag@ipfire.org> In-Reply-To: <20230829085241.6985-1-jonatan.schlag@ipfire.org> References: <20230829085241.6985-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 ecc007a47..b38c3836c 100644 --- a/src/initscripts/system/network +++ b/src/initscripts/system/network @@ -65,7 +65,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 # Create IPsec interfaces