From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer <michael.tremer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH 19/29] dhcpcd.exe: Only touch /var/ipfire/red/active once Date: Thu, 01 Dec 2022 17:23:08 +0000 Message-ID: <20221201172318.3166615-19-michael.tremer@ipfire.org> In-Reply-To: <20221201172318.3166615-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5389849569897016103==" List-Id: <development.lists.ipfire.org> --===============5389849569897016103== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org> --- src/initscripts/networking/dhcpcd.exe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/initscripts/networking/dhcpcd.exe b/src/initscripts/networki= ng/dhcpcd.exe index b85a2c598..440a76693 100644 --- a/src/initscripts/networking/dhcpcd.exe +++ b/src/initscripts/networking/dhcpcd.exe @@ -62,7 +62,8 @@ dhcpcd_up() fi =20 if [ $update ]; then - [ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active + # Consider RED being active + touch /var/ipfire/red/active =20 if [ -n "${new_routers}" ]; then echo -n "${new_routers}" > /var/ipfire/red/remote-ipaddress @@ -70,7 +71,6 @@ dhcpcd_up() =20 logger -p local0.info -t dhcpcd.exe[$$] "$interface has been (re)configure= d with IP=3D$new_ip_address" run_subdir ${rc_base}/init.d/networking/red.up/ - touch /var/ipfire/red/active fi } =20 --=20 2.30.2 --===============5389849569897016103==--