diff options
author | Christian Rößler | 2017-04-24 17:18:42 +0200 |
---|---|---|
committer | Christian Rößler | 2017-04-24 17:18:42 +0200 |
commit | 40cbdf108ab1d85c69fcfd1d506340b7b102f40c (patch) | |
tree | 855a4357b517de1239b5e8d7a9afe755bbebe1b6 /core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes | |
parent | [pam] add missing content package (diff) | |
download | mltk-40cbdf108ab1d85c69fcfd1d506340b7b102f40c.tar.gz mltk-40cbdf108ab1d85c69fcfd1d506340b7b102f40c.tar.xz mltk-40cbdf108ab1d85c69fcfd1d506340b7b102f40c.zip |
[run-virt] Floppy (fd1)-scripts: Some more testing, some hardening
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/data/linux/includes/10_functions.inc | 21 |
1 files changed, 12 insertions, 9 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 97767c51..cc5246ee 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,15 +34,18 @@ function mounter() logger "openslx sharemapper: $3 already mounted." AUSGANG=2 else - mount $1 $2 $3 2>/dev/null 1>&2 - ERR=$? - if [ "$ERR" -gt 0 ]; then - logger "openslx sharemapper: could not mount ${2} to ${3}." - AUSGANG=1 - else - logger "openslx sharemapper: ${2} mounted to ${3}." - AUSGANG=0 - fi + x=2 + while ! mount $1 $2 $3 2>/dev/null 1>&2; do + sleep $x + if [ "$x" -gt 10 ]; then + AUSGANG=1 + logger "openslx sharemapper: 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 fi return $AUSGANG } |