ypbind revision 1.4
1#!/bin/sh 2# 3# $NetBSD: ypbind,v 1.4 2000/09/19 13:04:39 lukem Exp $ 4# 5 6# PROVIDE: ypbind 7# REQUIRE: ypserv 8 9. /etc/rc.subr 10 11name="ypbind" 12rcvar=$name 13command="/usr/sbin/${name}" 14start_precmd="ypbind_precmd" 15 16ypbind_precmd() 17{ 18 _domain=`domainname` 19 if [ -z "$_domain" ]; then 20 warn "domainname(1) is not set." 21 return 1 22 fi 23} 24 25load_rc_config $name 26run_rc_command "$1" 27