From 85830188f466841aac7ff516c6bb489a6f4115b0 Mon Sep 17 00:00:00 2001 From: brd Date: Tue, 13 Feb 2018 16:07:39 +0000 Subject: [PATCH] Fix resolv to run when it should and not when it should not.. Approved by: manu Reported by: manu Pointy hat to: brd --- etc/rc.d/resolv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv index 68f4a4fb3e20..ed0470fe56c3 100755 --- a/etc/rc.d/resolv +++ b/etc/rc.d/resolv @@ -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"