nice new tool to show version of feisty meow
[feisty_meow.git] / scripts / system / check_mount.sh
1 #!/bin/bash
2 # check_mount: tests a mount point to see if it is already mounted, and if
3 # it is not, mounts it.
4 if [ -z "$1" ]; then
5   echo This program needs a mount point as a parameter.  If the mount point is not
6   echo already mounted, then the program will attempt to mount it.
7   exit 2
8 fi
9
10 if [ -z "$(mount | grep "$1")" ]; then
11   sudo mount "$1"
12 fi
13
14