06/21/2015 at 14:47
Post count: 9
Had the same issue and found a post in this forum with a script made by erdnuesse member, I modified it a bit for my needs and here it goes:
Just after the
#!/bin/bash in /usr/bin/emulationstation:
# Thx erdnuesse # Set retry to the number of times you want the loop to repeat RETRY=20 # As long as we have retries left... if [ `mount -l -t nfs | wc -l` -eq 0 ]; then while [ $RETRY -gt 0 ]; do # This will become true if 'ping' gets a response # Modify the following IP with your server address if ping -c 1 -W 1 192.168.1.7 > /dev/null ; then echo "Mounting NFS Shares..." sudo mount -a -t nfs RETRY=0 else # Wait for 1 second sleep 1 RETRY=$((RETRY - 1)) if [ $RETRY -eq 0 ]; then echo "[ERROR] NFS Failed to mount: server sent no response to ping." fi fi done else echo "Note: NFS Shares already mounted." fi
Hope it helps !