diff options
author | gordon <gordon@FreeBSD.org> | 2002-06-13 22:14:37 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2002-06-13 22:14:37 +0000 |
commit | 9c5433cb225f7a4e56e87623ea2e4011179553a5 (patch) | |
tree | 3168589e209abd888b033397e3c46dee6131a116 /etc/rc.d/yppasswdd | |
parent | 50d99cdfecd92f5323a18aa791a5b1cb9d8b7191 (diff) | |
download | FreeBSD-src-9c5433cb225f7a4e56e87623ea2e4011179553a5.zip FreeBSD-src-9c5433cb225f7a4e56e87623ea2e4011179553a5.tar.gz |
Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.
Submitted by: Mike Makonnen <makonnen@pacbell.net>
Reviewed by: silence on -current and -hackers
Prodded by: rwatson
Diffstat (limited to 'etc/rc.d/yppasswdd')
-rwxr-xr-x | etc/rc.d/yppasswdd | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/etc/rc.d/yppasswdd b/etc/rc.d/yppasswdd index 4b3ab70..3cb98076 100755 --- a/etc/rc.d/yppasswdd +++ b/etc/rc.d/yppasswdd @@ -1,19 +1,32 @@ #!/bin/sh # -# $NetBSD: yppasswdd,v 1.4 2000/06/02 22:54:13 fvdl Exp $ +# $NetBSD: yppasswdd,v 1.6 2002/03/22 04:34:01 thorpej Exp $ +# $FreeBSD$ # # PROVIDE: yppasswdd # REQUIRE: ypserv ypbind +# BEFORE: LOGIN +# KEYWORD: FreeBSD NetBSD . /etc/rc.subr name="yppasswdd" -rcvar=$name -command="/usr/sbin/rpc.${name}" -required_vars="rpcbind ypserv" +command="/usr/sbin/rpc.{name}" start_precmd="yppasswdd_precmd" +case `${CMD_OSTYPE}` in +FreeBSD) + rcvar="nis_yppasswdd_enable" + required_vars="portmap_enable nis_server_enable" + command_args="${nis_yppasswdd_flags}" + ;; +NetBSD) + rcvar=$name + required_vars="rpcbind ypserv" + ;; +esac + yppasswdd_precmd() { _domain=`domainname` |