Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2019 15:55:32 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343499 - head/libexec/rc
Message-ID:  <201901271555.x0RFtWG1085189@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Sun Jan 27 15:55:31 2019
New Revision: 343499
URL: https://svnweb.freebsd.org/changeset/base/343499

Log:
  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

Modified:
  head/libexec/rc/network.subr

Modified: head/libexec/rc/network.subr
==============================================================================
--- head/libexec/rc/network.subr	Sun Jan 27 15:50:36 2019	(r343498)
+++ head/libexec/rc/network.subr	Sun Jan 27 15:55:31 2019	(r343499)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901271555.x0RFtWG1085189>