check-nfs.sh 327B

1234567891011121314
  1. #!/bin/bash
  2. case $1 in
  3. nodev)
  4. if [ "$(mount | grep nfs | wc -l)" != "$(mount | grep "nfs.*nodev" | wc -l)" ];then
  5. exit 1
  6. fi
  7. ;;
  8. nosuid)
  9. if [ "$(mount | grep nfs | wc -l)" != "$(mount | grep "nfs.*nosuid" | wc -l)" ];then
  10. exit 1
  11. fi
  12. ;;
  13. esac