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.

MFC after:	5 days
This commit is contained in:
avos 2019-01-27 15:55:31 +00:00
parent db0bface0a
commit a7bfcd8ed2

View File

@ -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