diff options
| author | Doug Barton <dougb@FreeBSD.org> | 2012-02-14 10:51:24 +0000 |
|---|---|---|
| committer | Doug Barton <dougb@FreeBSD.org> | 2012-02-14 10:51:24 +0000 |
| commit | 20ceedfb69687a1cd5ca8fffcf65d1e46d606954 (patch) | |
| tree | 25bb26903a57056ed6ba1543fab1af2635184b77 /etc/rc.d/ypbind | |
| parent | 76a387fbba042d525c85a46194bc690a1073e43f (diff) | |
Notes
Diffstat (limited to 'etc/rc.d/ypbind')
| -rwxr-xr-x | etc/rc.d/ypbind | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind index 4dbf3519f390..71aea92c8033 100755 --- a/etc/rc.d/ypbind +++ b/etc/rc.d/ypbind @@ -11,22 +11,20 @@ . /etc/rc.subr name="ypbind" -command="/usr/sbin/${name}" -start_precmd="ypbind_precmd" +rcvar="nis_client_enable" load_rc_config $name -rcvar="nis_client_enable" + +command="/usr/sbin/${name}" command_args="${nis_client_flags}" +start_precmd="ypbind_precmd" + ypbind_precmd() { local _domain - if ! checkyesno rpcbind_enable && \ - ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1 - then - force_depend rpcbind || return 1 - fi + force_depend rpcbind || return 1 _domain=`domainname` if [ -z "$_domain" ]; then |
