X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fcheck_mount.sh;h=281d52bdafe1943f1091f1f23004e3dcec988980;hb=529ea909f454d4a75907ed01dbddfdfec10011d3;hp=889c9df3197a011845e92556937a17712478b1dc;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;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