diff options
author | Christian Rößler | 2017-06-27 14:00:17 +0200 |
---|---|---|
committer | Christian Rößler | 2017-06-27 14:00:17 +0200 |
commit | 65e3d952e84a42a5e3ac5c01072f24eaa2238686 (patch) | |
tree | 65aec1964d5dc6fe5cba909e07d4523dd12bb70d /core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc | |
parent | [vmware] Don't enable shared folders if remapMode is NONE (diff) | |
download | mltk-65e3d952e84a42a5e3ac5c01072f24eaa2238686.tar.gz mltk-65e3d952e84a42a5e3ac5c01072f24eaa2238686.tar.xz mltk-65e3d952e84a42a5e3ac5c01072f24eaa2238686.zip |
[run-virt] Some more fixes (cifs/smb), more tests etc.
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc index cc5246ee..e3c22bb0 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc @@ -34,18 +34,19 @@ function mounter() logger "openslx sharemapper: $3 already mounted." AUSGANG=2 else + AUSGANG=0 x=2 while ! mount $1 $2 $3 2>/dev/null 1>&2; do + logger "openslx sharemapper: could not mount ${2} to ${3}, waited another $x seconds, retrying." sleep $x - if [ "$x" -gt 10 ]; then + if [ "$x" -gt 6 ]; then AUSGANG=1 - logger "openslx sharemapper: could not mount ${2} to ${3}." + logger "openslx sharemapper: timeout, could not mount ${2} to ${3}." break fi let x=x+2 done - logger "openslx sharemapper: ${2} mounted to ${3}." # Todo: Schöner schreiben:) - AUSGANG=0 + [ "$AUSGANG" -eq 0 ] && logger "openslx sharemapper: ${2} mounted to ${3}." # Todo: Schöner schreiben:) fi return $AUSGANG } |