initskripts: networking: fix dhcpcd shutdown

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>
This commit is contained in:
Arne Fitzenreiter
2021-03-10 14:29:54 +01:00
parent 40e2faf07b
commit 66acb7f166
2 changed files with 3 additions and 0 deletions

View File

@@ -138,6 +138,8 @@ dhcpcd_stop() {
# 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