Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / scripts / system / check_mount.sh
index 889c9df3197a011845e92556937a17712478b1dc..281d52bdafe1943f1091f1f23004e3dcec988980 100644 (file)
@@ -1,4 +1,6 @@
 #!/bin/bash
+# check_mount: tests a mount point to see if it is already mounted, and if
+# it is not, mounts it.
 if [ -z "$1" ]; then
   echo This program needs a mount point as a parameter.  If the mount point is not
   echo already mounted, then the program will attempt to mount it.
@@ -6,7 +8,7 @@ if [ -z "$1" ]; then
 fi
 
 if [ -z "$(mount | grep "$1")" ]; then
-  mount "$1"
+  sudo mount "$1"
 fi