projects
/
feisty_meow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
889c9df3197a011845e92556937a17712478b1dc
[feisty_meow.git]
/
scripts
/
system
/
check_mount.sh
1
#!/bin/bash
2
if [ -z "$1" ]; then
3
echo This program needs a mount point as a parameter. If the mount point is not
4
echo already mounted, then the program will attempt to mount it.
5
exit 2
6
fi
7
8
if [ -z "$(mount | grep "$1")" ]; then
9
mount "$1"
10
fi
11
12