[BACK]Return to ypserv CVS log [TXT][DIR] 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.

Diff for /src/etc/rc.d/ypserv between version 1.7 and 1.9

version 1.7, 2004/10/11 15:00:51 version 1.9, 2005/04/01 23:25:29
Line 16  start_precmd="ypserv_precmd"
Line 16  start_precmd="ypserv_precmd"
   
 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
 }  }
   
 load_rc_config $name  load_rc_config $name
   load_rc_config_var rpcbind rpcbind
 run_rc_command "$1"  run_rc_command "$1"

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>