handle in wait-cycle correctly

This commit is contained in:
Honza Horák 2011-11-21 08:22:54 +01:00
parent d9fd11fbb1
commit 5b79a6bc46
1 changed files with 1 additions and 5 deletions

View File

@ -107,13 +107,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