|
|
@ -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` |
|
|
|