with kernel 5.10 dhcpcd hung at shutdown if red was a wireless client
becuase there was two running instances. This change repeat the
dcpcd -k call.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
etc/rc.d/init.d/firewall
etc/rc.d/init.d/leds
+etc/rc.d/init.d/networking/functions.network
# Wait until dhcpd has stopped.
while [ -d "/proc/${pid}" ]; do
sleep 1
+ # repeat stop if dhcp was still running
+ /sbin/dhcpcd ${dhcp_stop} ${device} &> /dev/null
done
# Display console message, depended on the exit code