mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user