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