dropped an old script from linux counter, added new duration tracker function which
[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