[ypbind/f14] handle firsttime in ypbind.init correctly

Jan Horak hhorak at fedoraproject.org
Mon Nov 21 08:10:40 UTC 2011


commit 6fd6da851e3e201c883e172a6e88fcd22ca11b59
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date:   Mon Nov 21 09:10:33 2011 +0100

    handle firsttime in ypbind.init correctly

 ypbind.init |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/ypbind.init b/ypbind.init
index c40e7b3..5d8eb82 100755
--- a/ypbind.init
+++ b/ypbind.init
@@ -108,13 +108,9 @@ start() {
     firsttime=1
     SECONDS=0
     while [ $SECONDS -lt $timeout ] || [ $firsttime -eq 1 ] ; do
+	firsttime=0
 	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
 	then
-	    if [ $firsttime -eq 1 ]; then
-		# reset timeout
-		timeout=$NISTIMEOUT
-		firsttime=0
-	    fi
 	    /usr/bin/ypwhich > /dev/null 2>&1
 	    retval=$?
 	    if [ $retval -eq 0 ]; then


More information about the scm-commits mailing list