From 15afe7b042f7cdfad46cc2eca5e59dd9297f6197 Mon Sep 17 00:00:00 2001 From: avos Date: Sat, 2 Feb 2019 04:21:00 +0000 Subject: [PATCH] MFC r343499: rc(8): do not stop dhclient(8) when wpa_supplicant(8) / hostapd(8) is used They will stop it automatically ('Interface wlan0 is down, dhclient exiting'); use /etc/rc.d/dhclient stop command only when none of them is used. --- etc/network.subr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etc/network.subr b/etc/network.subr index ccc72cdd434..ddd7637f49d 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -257,9 +257,7 @@ ifconfig_down() elif hostapif $1; then /etc/rc.d/hostapd stop $1 _cfg=0 - fi - - if dhcpif $1; then + elif dhcpif $1; then /etc/rc.d/dhclient stop $1 _cfg=0 fi -- 2.45.0