mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix resolv to run when it should and not when it should not..
Approved by: manu Reported by: manu Pointy hat to: brd
This commit is contained in:
parent
67dcd64ab8
commit
4126c2e199
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329218
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue