The curent one has: pid=`pidofproc ypbind` if [ -n "$pid" ]; then echo -n $"Listening for an NIS domain server." times=1 until ypwhich > /dev/null 2>&1 || [ "$times" = "3" ] do RETVAL=$? echo -n "." times=$[$times+1] done fi It has several problems: 1. If first time ypwhich failes, RETVAL will always be non-zero. 2. There is no sleep in bewteen. On my network, it may take up to 15 seconds from starting ypbind to working ypwhich.
Created attachment 20887 [details] A patch
*** This bug has been marked as a duplicate of 37463 ***