--- netfs.old2003-12-10 11:26:25.000000000 -0800
+++ netfs.new2003-12-10 11:25:49.000000000 -0800
@@ -36,6 +36,23 @@
# See how we were called.
case "" in
start)
+# First, try to check for connectivity to that network:
+ for mynfsserver in `grep -v '^#' /etc/fstab | awk '{if ( ~ /^nfs$/ && !~ /noauto/) print }' | cut -d: -f1`
+ do
+ echo -n "Checking NFS server: $mynfsserver"
+ i=1
+ until ping -q -c 2 -w 5 $mynfsserver > /dev/null || [ $i -ge 60 ]
+ do
+ sleep 0.1
+ i=$((i+1))
+ echo -n .
+ done
+
+ ping -q -c 1 -w 3 $mynfsserver > /dev/null || echo_warning
+ ping -q -c 1 -w 3 $mynfsserver > /dev/null && echo_suclearcase/" target="_blank" >ccess
+ echo
+ done
+
[ -n "$NFSFSTAB" ] &&
{
[ ! -f /var/lock/subsys/portmap ] && service portmap start