Skip to content

Instantly share code, notes, and snippets.

@kenci
Last active October 19, 2015 12:48
Show Gist options
  • Save kenci/22ec4c210b340a8ff1e2 to your computer and use it in GitHub Desktop.
Save kenci/22ec4c210b340a8ff1e2 to your computer and use it in GitHub Desktop.
Check if storage is properly mounted
#!/bin/bash
nfsdir="/mnt/kenonas"
if [ ! -d $nfsdir ]; then
echo false
else
echo true
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment