1
0
Fork 0
mirror of https://github.com/pygos/init-scripts.git synced 2024-11-12 16:17:09 +01:00
init-scripts/scripts/trymount.sh

8 lines
134 B
Bash
Raw Normal View History

#!/bin/sh
if [ -d "$1" ]; then
if grep -qsE "[[:space:]]+$2$" "/proc/filesystems"; then
mount -n -t "$2" -o "$3" "$2" "$1"
fi
fi