Random Project

NFS v4

In Debian Squeeze with NFS v4 support, partitions in /proc/mounts are show as
X.X.X.X:/path/to/remote /path/to/local nfs4 rw,…

In the script you must to change
grep -q /proc/mounts -e ” ${MP} nfs ” &>/dev/null
to
grep -q /proc/mounts -e ” ${MP} nfs4 ” &>/dev/null

And it’ll work nice for you.