summaryrefslogtreecommitdiff
path: root/scripts/trymount.sh.in
blob: a38279267023a08e58fe5716acb7c6ca5f9c3409 (plain)
1
2
3
4
5
6
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