dhcpcd.exe: remove red.down run on "NOCARRIER"

after "NOCARRIER" the dhcp client always run "EXPIRE" event.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2019-12-01 18:33:19 +01:00
parent 941520c69c
commit bedfda83c9

View File

@@ -5,7 +5,7 @@
#
# Authors : Arne Fitzenreiter - arne_f@ipfire.org
#
# Version : 02.00
# Version : 02.10
#
# Notes :
#
@@ -80,7 +80,7 @@ dhcpcd_down()
if [ "$RED_TYPE" == "DHCP" ]; then
rm -f /var/ipfire/red/active
if [ ! $reason == "PREINIT" ]; then
logger -p local0.info -t dhcpcd.exe[$$] "${interface} has been brought down"
logger -p local0.info -t dhcpcd.exe[$$] "${interface} has been brought down ($reason)"
run_subdir ${rc_base}/init.d/networking/red.down/
fi
fi
@@ -88,5 +88,5 @@ dhcpcd_down()
case "$reason" in
BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) dhcpcd_up;;
PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) dhcpcd_down;;
PREINIT|EXPIRE|FAIL|IPV4LL|NAK|RELEASE|STOP) dhcpcd_down;;
esac