summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-07-17 14:12:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-17 14:05:28 -0700
commit031eb508731b1727ef0fcb5c2d525adadf5ef2b1 (patch)
tree66c24d01ecdb2d33401c41a2218da3b2a7b41c99
parentf45ea4244288a2397b72c272184c9113ee0c1f08 (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
-rwxr-xr-xxlators/mount/fuse/utils/mount.glusterfs.in6
1 files 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');