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