From: Michael Tremer Date: Thu, 8 Sep 2022 10:37:00 +0000 (+0200) Subject: dhcpcd.exe: Only touch /var/ipfire/red/active once X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41b4f9f7fafc2a0a9f5069370d466abd81d2221e;p=people%2Fms%2Fipfire-2.x.git dhcpcd.exe: Only touch /var/ipfire/red/active once Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/networking/dhcpcd.exe b/src/initscripts/networking/dhcpcd.exe index b85a2c5987..440a76693f 100644 --- a/src/initscripts/networking/dhcpcd.exe +++ b/src/initscripts/networking/dhcpcd.exe @@ -62,7 +62,8 @@ dhcpcd_up() fi if [ $update ]; then - [ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active + # Consider RED being active + touch /var/ipfire/red/active if [ -n "${new_routers}" ]; then echo -n "${new_routers}" > /var/ipfire/red/remote-ipaddress @@ -70,7 +71,6 @@ dhcpcd_up() logger -p local0.info -t dhcpcd.exe[$$] "$interface has been (re)configured with IP=$new_ip_address" run_subdir ${rc_base}/init.d/networking/red.up/ - touch /var/ipfire/red/active fi }