handle in wait-cycle correctly
This commit is contained in:
parent
d9fd11fbb1
commit
5b79a6bc46
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue