diff options
| author | Simon Rettberg | 2016-08-30 18:19:54 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2016-08-30 18:19:54 +0200 |
| commit | 98fb0fe15fdfe40fedf178d56d3952d859475697 (patch) | |
| tree | 3d4979ddacb623cf5710f6ecbd0d3787d064ae9e /remote/modules/run-virt/data/opt/openslx/scripts | |
| parent | [rfs-stage32] Add ip6tables (diff) | |
| download | tm-scripts-98fb0fe15fdfe40fedf178d56d3952d859475697.tar.gz tm-scripts-98fb0fe15fdfe40fedf178d56d3952d859475697.tar.xz tm-scripts-98fb0fe15fdfe40fedf178d56d3952d859475697.zip | |
[run-virt] Fix firewall setup by making wget calls busybox compliant, +s fw-binary
Diffstat (limited to 'remote/modules/run-virt/data/opt/openslx/scripts')
| -rw-r--r-- | remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc | 2 | ||||
| -rw-r--r-- | remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_virtual_floppy.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc b/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc index f77e955b..8bdfd8b1 100644 --- a/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc +++ b/remote/modules/run-virt/data/opt/openslx/scripts/includes/detect_legacy.inc @@ -19,7 +19,7 @@ if [ -z "$IMGUUID" ]; then # Keine uuid: Abbruch, Legacy writelog "Could not extract a uuid param from ${xmlfile}. Triggering legacy mode." else # Now getting template file: - if ! wget -O "$TMPCONFIG" "${SLX_VMCHOOSER_BASE_URL}/lecture/${IMGUUID}" 2>/dev/null >&2; then + if ! wget -T 6 -O "$TMPCONFIG" "${SLX_VMCHOOSER_BASE_URL}/lecture/${IMGUUID}" 2>/dev/null >&2; then writelog "wget ${SLX_VMCHOOSER_BASE_URL}/lecture/${IMGUUID}. Triggering legacy mode." else writelog "wget ${SLX_VMCHOOSER_BASE_URL}/lecture/${IMGUUID} successful." diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_virtual_floppy.inc b/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_virtual_floppy.inc index 0b64b9e2..3fd5c109 100644 --- a/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_virtual_floppy.inc +++ b/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_virtual_floppy.inc @@ -7,7 +7,7 @@ declare -rg FLOPPYIMG="${TMPDIR}/floppy.img" declare -rg TMPHOME="${HOME}" declare -rg RUNSCRIPT="${TMPDIR}/runscript.tmp" -wget -T 6 -O "${RUNSCRIPT}" -nv "${SLX_VMCHOOSER_BASE_URL}/lecture/${IMGUUID}/runscript" & +wget -T 6 -O "${RUNSCRIPT}" "${SLX_VMCHOOSER_BASE_URL}/lecture/${IMGUUID}/runscript" > /dev/null & WGET=$! dd "if=/dev/zero" "of=${FLOPPYIMG}" count=1440 bs=1024 |
