=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/rc,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/etc/rc 1996/06/11 03:25:10 1.14 --- src/etc/rc 1996/06/12 09:02:59 1.15 *************** *** 1,4 **** ! # $OpenBSD: rc,v 1.14 1996/06/11 03:25:10 tholo Exp $ # System startup script run by init on autoboot # or after single-user. --- 1,4 ---- ! # $OpenBSD: rc,v 1.15 1996/06/12 09:02:59 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. *************** *** 103,109 **** # if we are the master server, run rpc.yppasswdd _host1=`ypwhich -m passwd 2> /dev/null` _host2=`hostname` ! if grep '^lookup' /etc/resolv.conf | grep yp | wc; then _host1=`ypmatch $_host1 hosts | cut -d' ' -f2` _host2=`ypmatch $_host2 hosts | cut -d' ' -f2 | head -1` else --- 103,109 ---- # if we are the master server, run rpc.yppasswdd _host1=`ypwhich -m passwd 2> /dev/null` _host2=`hostname` ! if [ `grep '^lookup' /etc/resolv.conf | grep yp | wc -c` -ne 0 ]; then _host1=`ypmatch $_host1 hosts | cut -d' ' -f2` _host2=`ypmatch $_host2 hosts | cut -d' ' -f2 | head -1` else