diff options
author | Simon Rettberg | 2020-08-07 14:42:19 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-08-07 14:42:19 +0200 |
commit | 58841a46010748a392526f26141c9273035ff60a (patch) | |
tree | ab65c05d9e06d46612e01956ec225d177bbaddd9 /core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env | |
parent | [dhcpc-busybox] Re-set hostname if it's noname-* (diff) | |
download | mltk-58841a46010748a392526f26141c9273035ff60a.tar.gz mltk-58841a46010748a392526f26141c9273035ff60a.tar.xz mltk-58841a46010748a392526f26141c9273035ff60a.zip |
[run-virt] Fix timeout calls wrt busybox commit c9720a76
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env')
-rwxr-xr-x | core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env | 2 |
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 f556c368..77dfa194 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 $(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}') + echo $(busybox timeout 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 |