dhcpcd: fix delay after dhcp down. v2.19-core111
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 1 Jun 2017 08:15:18 +0000 (10:15 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 1 Jun 2017 08:15:18 +0000 (10:15 +0200)
this also cause a delay with some nic's that cannot set the mtu in up state.
(eg. e1000e)

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/networking/dhcpcd.exe

index 6c1391d..a2cdc66 100644 (file)
@@ -79,6 +79,7 @@ dhcpcd_down()
        # Only if RED_TYPE=DHCP update /var/ipfire/red
        if [ "$RED_TYPE" == "DHCP" ]; then
                logger -p local0.info -t dhcpcd.exe[$$] "${interface} has been brought down"
+               rm -f /var/ipfire/red/active
                run_subdir ${rc_base}/init.d/networking/red.down/
        fi
 }