svn commit: r343676 - stable/11/etc
Andriy Voskoboinyk
avos at FreeBSD.org
Sat Feb 2 04:21:01 UTC 2019
Author: avos
Date: Sat Feb 2 04:21:00 2019
New Revision: 343676
URL: https://svnweb.freebsd.org/changeset/base/343676
Log:
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.
Modified:
stable/11/etc/network.subr
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/etc/network.subr
==============================================================================
--- stable/11/etc/network.subr Sat Feb 2 04:19:35 2019 (r343675)
+++ stable/11/etc/network.subr Sat Feb 2 04:21:00 2019 (r343676)
@@ -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
More information about the svn-src-stable-11
mailing list