Return to ypserv CVS log | Up to [cvs.NetBSD.org] / src / etc / rc.d |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.8, 2004/10/12 14:51:03 | version 1.9, 2005/04/01 23:25:29 | ||
---|---|---|---|
|
|
||
ypserv_precmd() | ypserv_precmd() | ||
{ | { | ||
_domain=$(domainname) | if [ ! -d /var/yp/. ]; then | ||
if [ -z "$_domain" ]; then | warn "/var/yp is not a directory." | ||
warn "domainname(1) is not set." | |||
return 1 | |||
fi | |||
if [ ! -d /var/yp/$_domain/. ]; then | |||
warn "/var/yp/$_domain is not a directory." | |||
return 1 | return 1 | ||
fi | fi | ||
} | } |