diff options
author | 1996-06-12 09:02:59 +0000 | |
---|---|---|
committer | 1996-06-12 09:02:59 +0000 | |
commit | fd917f6e4c8a6c2648c9b85f4a7deb8a29f71e18 (patch) | |
tree | 2aad87887602ccb432b97c2ffb330f89d2d76299 | |
parent | sync to 0611 (diff) | |
download | wireguard-openbsd-fd917f6e4c8a6c2648c9b85f4a7deb8a29f71e18.tar.xz wireguard-openbsd-fd917f6e4c8a6c2648c9b85f4a7deb8a29f71e18.zip |
fix test for yp in resolv.conf
-rw-r--r-- | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.14 1996/06/11 03:25:10 tholo Exp $ +# $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,7 +103,7 @@ if [ -d /var/yp/binding ]; then # 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 + 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 |