#!/bin/bash # This is the first shot :). It is missing the right case start, stop, esac. while ! ping 212.21.51.111 -c1 >/dev/null; do sleep 5; echo "Network or STARLAB server unreachable." done if [ -f /home/nfs/empty ]; then mount -t nfs -o nfsvers=3,rw,nosuid,nodev,noatime,nodiratime 212.21.51.111:/home /home/nfs fi /etc/init.d/libnss-ldap restart /etc/init.d/nscd restart # ensure we were always successful exit 0