Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d ypserv(8) doesn't need the domainname(1) set -- it ...



details:   https://anonhg.NetBSD.org/src/rev/1f9f30d7448b
branches:  trunk
changeset: 579944:1f9f30d7448b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Apr 01 23:25:29 2005 +0000

description:
ypserv(8) doesn't need the domainname(1) set -- it will serve any maps
present under /var/yp/<somedomain>/<map> -- so don't require it.
Thanks to Chuck Cranor for the suggestion.

diffstat:

 etc/rc.d/ypserv |  12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diffs (28 lines):

diff -r 38eb0d29b8ea -r 1f9f30d7448b etc/rc.d/ypserv
--- a/etc/rc.d/ypserv   Fri Apr 01 22:40:31 2005 +0000
+++ b/etc/rc.d/ypserv   Fri Apr 01 23:25:29 2005 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: ypserv,v 1.8 2004/10/12 14:51:03 lukem Exp $
+# $NetBSD: ypserv,v 1.9 2005/04/01 23:25:29 lukem Exp $
 #
 
 # PROVIDE: ypserv
@@ -16,14 +16,8 @@
 
 ypserv_precmd()
 {
-       _domain=$(domainname)
-       if [ -z "$_domain" ]; then
-               warn "domainname(1) is not set."
-               return 1
-       fi
-
-       if [ ! -d /var/yp/$_domain/. ]; then
-               warn "/var/yp/$_domain is not a directory."
+       if [ ! -d /var/yp/. ]; then
+               warn "/var/yp is not a directory."
                return 1
        fi
 }



Home | Main Index | Thread Index | Old Index