ypbind revision 1.1
11.1Slukem#!/bin/sh
21.1Slukem#
31.1Slukem# $NetBSD: ypbind,v 1.1 2000/03/10 11:53:23 lukem Exp $
41.1Slukem#
51.1Slukem
61.1Slukem# PROVIDE: ypbind
71.1Slukem# REQUIRE: ypserv
81.1Slukem
91.1Slukem. /etc/rc.subr
101.1Slukem. /etc/rc.conf
111.1Slukem
121.1Slukemname="ypbind"
131.1Slukemcommand="/usr/sbin/${name}"
141.1Slukemstart_precmd="ypbind_precmd"
151.1Slukem
161.1Slukemypbind_precmd()
171.1Slukem{
181.1Slukem	if [ -z "$domainname" ]; then
191.1Slukem		warn "\$domainname is not set; ${name} not started"
201.1Slukem		return 1
211.1Slukem	fi
221.1Slukem}
231.1Slukem
241.1Slukemrun_rc_command "$1"
25