NFS needs brackets around ipv6 addresses. Also: nfs_is_mounted needs to quote the variables. This becomes apparent when ipv6 addresses are used as then the address would otherwise be treated as a character class, causing the check to always fail.
change path in jessie of package rpcbind from /usr/bin/rpcinfo to /usr/sbin/rpcinfo Signed-off-by: Wolfgang Link <w.link@proxmox.com>
This works for NFS servers behind firewalls.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>