ypbind revision 1.8
11.1Slukem#!/bin/sh 21.1Slukem# 31.8Schristos# $NetBSD: ypbind,v 1.8 2004/10/11 15:00:51 christos Exp $ 41.1Slukem# 51.1Slukem 61.1Slukem# PROVIDE: ypbind 71.7Slukem# REQUIRE: rpcbind 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.8Schristos _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