summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/utils/mount.glusterfs.in
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-07-14 17:38:08 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-16 00:37:49 -0700
commitbdcdc8dd18dda19af698f147e3f32ed7f9e5efd5 (patch)
tree38e287efa8508a5622a8ff1c8421425a05b07764 /xlators/mount/fuse/utils/mount.glusterfs.in
parent41986e06d0e8e5f66f20944bc8d8abeca1d73ab1 (diff)
change mount.glusterfs.in to work with non-bash shells too.
removed 'fuction ' prefix to function definitions which was very much /bin/bash specific. Thanks to Brent A. Nelson <brent@phys.ufl.edu> for the patch. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 139 (tiny glitch in mount.glusterfs in 2.0.4) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=139
Diffstat (limited to 'xlators/mount/fuse/utils/mount.glusterfs.in')
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in
index 95403262015..0bf8efd9dbc 100755
--- a/xlators/mount/fuse/utils/mount.glusterfs.in
+++ b/xlators/mount/fuse/utils/mount.glusterfs.in
@@ -16,7 +16,7 @@
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA
-function _init ()
+_init ()
{
# log level definitions
LOG_NONE=NONE;
@@ -34,7 +34,7 @@ function _init ()
cmd_line=$(echo "@sbindir@/glusterfs");
}
-function start_glusterfs ()
+start_glusterfs ()
{
if [ -n "$log_level_str" ]; then
case "$log_level_str" in
@@ -115,7 +115,7 @@ function start_glusterfs ()
exec $cmd_line;
}
-function usage ()
+usage ()
{
echo "Usage: mount.glusterfs <volumeserver>:<volumeid/volumeport> -o <options> <mountpoint>
@@ -127,7 +127,7 @@ mount.glusterfs --version"
}
-function main ()
+main ()
{
helper=$(echo "$@" | sed -n 's/.*\--[ ]*\([^ ]*\).*/\1/p');