ypbind revision 1.6
11.1Slukem#!/bin/sh 21.1Slukem# 31.6Smycroft# $NetBSD: ypbind,v 1.6 2004/08/13 18:08:03 mycroft Exp $ 41.1Slukem# 51.1Slukem 61.1Slukem# PROVIDE: ypbind 71.1Slukem# REQUIRE: ypserv 81.5Sthorpej# BEFORE: DAEMON 91.1Slukem 101.6Smycroft$_rc_subr_loaded . /etc/rc.subr 111.1Slukem 121.1Slukemname="ypbind" 131.4Slukemrcvar=$name 141.1Slukemcommand="/usr/sbin/${name}" 151.1Slukemstart_precmd="ypbind_precmd" 161.1Slukem 171.1Slukemypbind_precmd() 181.1Slukem{ 191.2Slukem _domain=`domainname` 201.2Slukem if [ -z "$_domain" ]; then 211.4Slukem warn "domainname(1) is not set." 221.1Slukem return 1 231.1Slukem fi 241.1Slukem} 251.1Slukem 261.3Slukemload_rc_config $name 271.1Slukemrun_rc_command "$1" 28