summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-06-22 14:46:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-06-22 14:46:43 +0000
commite6b090d4f90cc39e50a7e7fe633df06c78d58304 (patch)
treeedecd69f18df876fb66d90e17cdde2a567a4b8d4 /etc
parenteb72363ad1a71c7c1fc185faa9a1372e257aa0e6 (diff)
bail YP if no domainname; dima@unixfreak.org
Diffstat (limited to 'etc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index d06fba3c418..d8163ddc17b 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.173 2001/06/12 06:36:03 fgsch Exp $
+# $OpenBSD: rc,v 1.174 2001/06/22 14:46:42 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -206,7 +206,7 @@ if [ X"${portmap}" = X"YES" ]; then
echo -n ' portmap'; portmap
fi
-if [ -d /var/yp/binding ]; then
+if [ -d /var/yp/binding -a X`domainname` != X ]; then
if [ -d /var/yp/`domainname` ]; then
# yp server capabilities needed...
echo -n ' ypserv'; ypserv ${ypserv_flags}