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