]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
initskripts: networking: fix dhcpcd shutdown
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 10 Mar 2021 13:29:54 +0000 (14:29 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jul 2021 05:42:37 +0000 (07:42 +0200)
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>
config/rootfiles/core/kerneltest/filelists/files
src/initscripts/networking/functions.network

index e7e725ea61b3e287d2abe7b7c94d69a51a03a3cb..4a06318cbdbe3b710fba24303e78829eb4726f34 100644 (file)
@@ -1,2 +1,3 @@
 etc/rc.d/init.d/firewall
 etc/rc.d/init.d/leds
+etc/rc.d/init.d/networking/functions.network
index b7ce1c5e0d58b78f7e749f2a588b5a50c8f9ef0b..656e6a7abe55a0ef29430d822e4dbf4239a89e55 100644 (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