Browse Source

make the check more readable

OPENBSD_5_0
robert 13 years ago
parent
commit
4598130b1c
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      src/etc/rc.d/ypbind
  2. +2
    -2
      src/etc/rc.d/yppasswdd
  3. +2
    -2
      src/etc/rc.d/ypserv

+ 2
- 2
src/etc/rc.d/ypbind View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: ypbind,v 1.1 2011/07/07 01:52:58 robert Exp $
# $OpenBSD: ypbind,v 1.2 2011/07/07 18:23:17 robert Exp $
daemon="/usr/sbin/ypbind"
@ -10,7 +10,7 @@ rc_bg=YES
rc_reload=NO
rc_pre() {
[ X`domainname` != X"" -a -d /var/yp/binding ] || \
[ X"`domainname`" != X"" -a -d /var/yp/binding ] || \
return 1
}


+ 2
- 2
src/etc/rc.d/yppasswdd View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: yppasswdd,v 1.1 2011/07/07 01:52:58 robert Exp $
# $OpenBSD: yppasswdd,v 1.2 2011/07/07 18:23:17 robert Exp $
daemon="/usr/sbin/rpc.yppasswdd"
@ -9,7 +9,7 @@ daemon="/usr/sbin/rpc.yppasswdd"
rc_reload=NO
rc_pre() {
[ X`domainname` != X"" -a -d /var/yp/`domainname` ] || \
[ X"`domainname`" != X"" -a -d /var/yp/`domainname` ] || \
return 1
_host1=`ypwhich -m passwd 2> /dev/null`
_host2=`hostname`


+ 2
- 2
src/etc/rc.d/ypserv View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: ypserv,v 1.1 2011/07/07 01:52:58 robert Exp $
# $OpenBSD: ypserv,v 1.2 2011/07/07 18:23:17 robert Exp $
daemon="/usr/sbin/ypserv"
@ -9,7 +9,7 @@ daemon="/usr/sbin/ypserv"
rc_reload=NO
rc_pre() {
[ X`domainname` != X"" -a -d /var/yp/`domainname` ] || \
[ X"`domainname`" != X"" -a -d /var/yp/`domainname` ] || \
return 1
}


Loading…
Cancel
Save