erdnuesse
Participant
Post count: 9

I inserted this right above the exit 0 entry in /etc/rc.local
Remember:
1. I won’t be responsible for any damages you cause from information given here
2. try your mount commands first, before you insert them
3. replace the ip with the ip of your nfs storage

# Set retry to the number of times you want the loop to repeat
RETRY=20

# As long as we have retries left...
while [ $RETRY -gt 0 ]; do
    # this will become true if 'ping' gets a response
    if ping -c 1 -W 1 192.168.0.1 > /dev/null ; then
        # insert all your mounts here
        mount -t nfs 192.168.0.1:/path/to/roms/snes /home/pi/RetroPie/roms/snes
        mount -t nfs 192.168.0.1:/path/to/roms/nes /home/pi/RetroPie/roms/nes
        echo "NFS mounted"
        RETRY=0
    # and if there's no response...
    else
        # set sleep higher if you want to wait more than 1sec between attempts
        sleep 1
        RETRY=$((RETRY - 1))
        if [ $RETRY -eq 0 ]; then
            echo "NFS Failed to mount, server sent no echo response"
        fi
    fi
done

Thanks to chrishsin for pointing me there.