diff options
Diffstat (limited to 'scripts/trymount.sh')
-rw-r--r-- | scripts/trymount.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/trymount.sh b/scripts/trymount.sh new file mode 100644 index 0000000..9be77f6 --- /dev/null +++ b/scripts/trymount.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -d "$1" ]; then + if grep -qsE "[[:space:]]+$2$" "/proc/filesystems"; then + mount -n -t "$2" -o "$3" "$2" "$1" + fi +fi |