#!/bin/sh
[ "$1" = "-d" ] && echo network
-[ "$1" = "-H" ] || [ "$1" = "--hostonly" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1
+[ "$1" = "-H" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1
which rpcbind rpc.statd mount.nfs mount.nfs4 umount >/dev/null 2>&1 || exit 1
exit 0
which cryptsetup >/dev/null 2>&1 || exit 1
-if [ "$1" = "-H" ] || [ "$1" = "--hostonly" ]; then
+if [ "$1" = "-H" ]; then
blkid | grep -q crypt_LUKS || exit 1
fi
#!/bin/sh
which dmraid >/dev/null 2>&1 || exit 1
-if [ "$1" = "-H" ] || [ "$1" = "--hostonly" ]; then
+if [ "$1" = "-H" ]; then
dmraid -r | grep -q ok || exit 1
fi
#!/bin/sh
-[ "$1" = "-H" ] || [ "$1" = "--hostonly" ] && exit 1
+[ "$1" = "-H" ] && exit 1
#!/bin/sh
which lvm >/dev/null 2>&1 || exit 1
-if [ "$1" = "-H" ] || [ "$1" = "--hostonly" ]; then
+if [ "$1" = "-H" ]; then
blkid | grep -q lvm2pv || exit 1
fi
#!/bin/sh
which mdadm >/dev/null 2>&1 || exit 1
-if [ "$1" = "-H" ] || [ "$1" = "--hostonly" ]; then
+if [ "$1" = "-H" ]; then
blkid | grep -q linux_raid || exit 1
fi