You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
442 B

#!/bin/sh
# We depend on network modules being loaded
[ "$1" = "-d" ] && echo network
# If hostonly was requested, fail the check if we are not actually
# booting from root.
[ "$1" = "-h" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1
# If our prerequisites are not met, fail anyways.
which rpcbind >/dev/null 2>&1 || which portmap >/dev/null 2>&1 || exit 1
which rpc.statd mount.nfs mount.nfs4 umount >/dev/null 2>&1 || exit 1
exit 0