|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/sh |
|
|
|
# |
|
|
|
# $OpenBSD: yppasswdd,v 1.3 2011/07/08 02:15:34 robert Exp $ |
|
|
|
# $OpenBSD: yppasswdd,v 1.4 2011/07/08 04:29:54 ajacoutot Exp $ |
|
|
|
|
|
|
|
daemon="/usr/sbin/rpc.yppasswdd" |
|
|
|
|
|
|
@ -22,8 +22,7 @@ rc_pre() { |
|
|
|
_host2=`echo $_host2 | nslookup | grep '^Name: ' | \ |
|
|
|
sed -e 's/^Name: //'` |
|
|
|
fi |
|
|
|
[ "$_host2" != "$_host1" ] && return 1 |
|
|
|
return 0 |
|
|
|
[ "$_host2" = "$_host1" ] |
|
|
|
} |
|
|
|
|
|
|
|
rc_cmd $1 |