X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fcheck_mount.sh;fp=scripts%2Fsystem%2Fcheck_mount.sh;h=281d52bdafe1943f1091f1f23004e3dcec988980;hb=cf2661a888cf8cd207b84564688661872d2dbb1f;hp=889c9df3197a011845e92556937a17712478b1dc;hpb=67e1a998e3ac4d8f4bee85ec28242a77387b235d;p=feisty_meow.git diff --git a/scripts/system/check_mount.sh b/scripts/system/check_mount.sh index 889c9df3..281d52bd 100644 --- a/scripts/system/check_mount.sh +++ b/scripts/system/check_mount.sh @@ -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