From 031eb508731b1727ef0fcb5c2d525adadf5ef2b1 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 17 Jul 2009 14:12:50 +0000 Subject: 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 for the patch. Signed-off-by: Anand V. Avati BUG: 139 (tiny glitch in mount.glusterfs in 2.0.4) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=139 --- xlators/mount/fuse/utils/mount.glusterfs.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xlators/mount/fuse/utils/mount.glusterfs.in b/xlators/mount/fuse/utils/mount.glusterfs.in index 13d6ea5646c..4547e8c5bc0 100755 --- a/xlators/mount/fuse/utils/mount.glusterfs.in +++ b/xlators/mount/fuse/utils/mount.glusterfs.in @@ -18,7 +18,7 @@ -function _init () +_init () { # log level definitions LOG_NONE=NONE; @@ -33,7 +33,7 @@ function _init () log_level=$LOG_NORMAL; } -function start_glusterfs () +start_glusterfs () { prefix="@prefix@"; exec_prefix=@exec_prefix@; @@ -110,7 +110,7 @@ function start_glusterfs () } -function main () +main () { options=$(echo "$@" | sed -n 's/.*\-o[ ]*\([^ ]*\).*/\1/p'); new_log_level=$(echo "$options" | sed -n 's/.*log-level=\([^,]*\).*/\1/p'); -- cgit