Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Feb 2018 16:07:39 +0000 (UTC)
From:      Brad Davis <brd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329218 - head/etc/rc.d
Message-ID:  <201802131607.w1DG7dta050207@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brd (doc,ports committer)
Date: Tue Feb 13 16:07:39 2018
New Revision: 329218
URL: https://svnweb.freebsd.org/changeset/base/329218

Log:
  Fix resolv to run when it should and not when it should not..
  
  Approved by:	manu
  Reported by:	manu
  Pointy hat to:	brd

Modified:
  head/etc/rc.d/resolv

Modified: head/etc/rc.d/resolv
==============================================================================
--- head/etc/rc.d/resolv	Tue Feb 13 15:55:31 2018	(r329217)
+++ head/etc/rc.d/resolv	Tue Feb 13 16:07:39 2018	(r329218)
@@ -34,12 +34,11 @@
 . /etc/rc.subr
 
 name="resolv"
+rcvar="resolv_enable"
 desc="Create /etc/resolv.conf from kenv"
 start_cmd="${name}_start"
 stop_cmd=':'
 
-load_rc_config $name
-
 # if the info is available via dhcp/kenv
 # build the resolv.conf
 #
@@ -60,3 +59,5 @@ resolv_start()
 	fi
 }
 
+load_rc_config $name
+run_rc_command "$1"



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