handle firsttime in ypbind.init correctly
This commit is contained in:
parent
74d4fc0ca5
commit
6fd6da851e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user