handle firsttime in ypbind.init correctly

This commit is contained in:
Honza Horák 2011-11-21 09:10:33 +01:00
parent 74d4fc0ca5
commit 6fd6da851e
1 changed files with 1 additions and 5 deletions

View File

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