diff options
Diffstat (limited to 'etc/rc.d/ypbind')
-rwxr-xr-x | etc/rc.d/ypbind | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind index 7549087..dfd87ec 100755 --- a/etc/rc.d/ypbind +++ b/etc/rc.d/ypbind @@ -1,18 +1,30 @@ #!/bin/sh # -# $NetBSD: ypbind,v 1.3 2000/05/13 08:45:10 lukem Exp $ +# $NetBSD: ypbind,v 1.5 2002/03/22 04:34:01 thorpej Exp $ +# $FreeBSD$ # # PROVIDE: ypbind # REQUIRE: ypserv +# BEFORE: DAEMON +# KEYWORD: FreeBSD NetBSD . /etc/rc.subr name="ypbind" -rcvar=$name command="/usr/sbin/${name}" start_precmd="ypbind_precmd" +case `${CMD_OSTYPE}` in +FreeBSD) + rcvar="nis_client_enable" + command_args="${nis_client_flags}" + ;; +NetBSD) + rcvar=$name + ;; +esac + ypbind_precmd() { _domain=`domainname` |