How can this while loop be limited to maximum 10 retries?
#!/bin/sh while ! test -d /somemount/share/folder do echo \"Waiting for mount /somemount/share/
Keep a counter:
#!/bin/sh while ! test -d /somemount/share/folder do echo "Waiting for mount /somemount/share/folder..." ((c++)) && ((c==10)) && break sleep 1 done