diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2011-07-07 18:23:18 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2011-07-07 18:23:18 +0000 |
commit | 587038d574154c03f0e359cdea4a2b1bf60bd5f3 (patch) | |
tree | 89b564c4ba049411316b9ceed2d0acfa4330de6c /etc | |
parent | 8a028c865b6917476790d9d7e9f75444d8fbf3fa (diff) |
make the check more readable
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/ypbind | 4 | ||||
-rw-r--r-- | etc/rc.d/yppasswdd | 4 | ||||
-rw-r--r-- | etc/rc.d/ypserv | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind index fb72f0b4e4e..7197e895869 100644 --- a/etc/rc.d/ypbind +++ b/etc/rc.d/ypbind @@ -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 } diff --git a/etc/rc.d/yppasswdd b/etc/rc.d/yppasswdd index 99c93049f37..d3dd731faa2 100644 --- a/etc/rc.d/yppasswdd +++ b/etc/rc.d/yppasswdd @@ -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` diff --git a/etc/rc.d/ypserv b/etc/rc.d/ypserv index 199cd610bb5..6c189e036bf 100644 --- a/etc/rc.d/ypserv +++ b/etc/rc.d/ypserv @@ -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 } |