summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2019-12-13 15:38:25 +0100
committerJonathan Bauer2019-12-13 15:39:01 +0100
commit027b063513b7f432b3091615b7c34cb716251d56 (patch)
tree6fc8363440ed089c8dd7362cf1662acfbc8b4e0e
parent[slx-issue] use slx-tools for ID44 detection (diff)
downloadmltk-027b063513b7f432b3091615b7c34cb716251d56.tar.gz
mltk-027b063513b7f432b3091615b7c34cb716251d56.tar.xz
mltk-027b063513b7f432b3091615b7c34cb716251d56.zip
[run-virt] use busybox's timeout
-rwxr-xr-xcore/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env b/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env
index 3b654732..f556c368 100755
--- a/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env
+++ b/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env
@@ -193,7 +193,7 @@ getips () {
[ -z "$1" ] && return
[ "$1" = "$FALLBACK_DOMAIN" ] && return
# Output in one line by using echo without quotes
- echo $(timeout -t 2 nslookup "$1" 2>/dev/null | grep -A 4 '^Name:' | grep -E '^Address\s*[0-9]*: ' | awk -F': ' '{print $2}' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | awk '{print $1}')
+ echo $(busybox timeout -t 2 nslookup "$1" 2>/dev/null | grep -A 4 '^Name:' | grep -E '^Address\s*[0-9]*: ' | awk -F': ' '{print $2}' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | awk '{print $1}')
}
# read the DNS configuration and configure the udhcpd