ypbind revision 1.3
11.1Slukem#!/bin/sh
21.1Slukem#
31.3Slukem# $NetBSD: ypbind,v 1.3 2000/05/13 08:45:10 lukem Exp $
41.1Slukem#
51.1Slukem
61.1Slukem# PROVIDE: ypbind
71.1Slukem# REQUIRE: ypserv
81.1Slukem
91.1Slukem. /etc/rc.subr
101.1Slukem
111.1Slukemname="ypbind"
121.1Slukemcommand="/usr/sbin/${name}"
131.1Slukemstart_precmd="ypbind_precmd"
141.1Slukem
151.1Slukemypbind_precmd()
161.1Slukem{
171.2Slukem	_domain=`domainname`
181.2Slukem	if [ -z "$_domain" ]; then
191.2Slukem		warn "domainname(1) is not set; ${name} not started"
201.1Slukem		return 1
211.1Slukem	fi
221.1Slukem}
231.1Slukem
241.3Slukemload_rc_config $name
251.1Slukemrun_rc_command "$1"
26