Cross Reference: yppasswdd
xref: /src/etc/rc.d/yppasswdd
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/etc/rc.d/
11.1Slukem#!/bin/sh
21.1Slukem#
31.10Slukem# $NetBSD: yppasswdd,v 1.10 2004/10/12 14:51:03 lukem Exp $
41.1Slukem#
51.1Slukem
61.1Slukem# PROVIDE: yppasswdd
71.8Slukem# REQUIRE: rpcbind ypserv ypbind
81.6Sthorpej# BEFORE:  LOGIN
91.1Slukem
101.7Smycroft$_rc_subr_loaded . /etc/rc.subr
111.1Slukem
121.1Slukemname="yppasswdd"
131.5Slukemrcvar=$name
141.1Slukemcommand="/usr/sbin/rpc.${name}"
151.4Sfvdlrequired_vars="rpcbind ypserv"
161.1Slukemstart_precmd="yppasswdd_precmd"
171.1Slukem
181.1Slukemyppasswdd_precmd()
191.1Slukem{
201.9Schristos	_domain=$(domainname)
211.2Slukem	if [ -z "$_domain" ]; then
221.5Slukem		warn "domainname(1) is not set."
231.1Slukem		return 1
241.1Slukem	fi
251.1Slukem}
261.1Slukem
271.3Slukemload_rc_config $name
281.10Slukemload_rc_config_var rpcbind rpcbind
291.10Slukemload_rc_config_var ypserv ypserv
301.1Slukemrun_rc_command "$1"
31

Indexes created Sat Nov 29 02:09:32 GMT 2025