summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-08-14 14:39:08 +0200
committerJonathan Bauer2020-08-14 14:39:08 +0200
commit17726c1be466d7a4bb4adfa0dd5577f97e395e65 (patch)
treeff8b4082fc18dbf50b05195cf9d9e69547fe0a1b
parent[dnbd3-rootfs] only copy /run/initramfs if enough space (diff)
downloadsystemd-init-17726c1be466d7a4bb4adfa0dd5577f97e395e65.tar.gz
systemd-init-17726c1be466d7a4bb4adfa0dd5577f97e395e65.tar.xz
systemd-init-17726c1be466d7a4bb4adfa0dd5577f97e395e65.zip
[slx-network] fix nslookup call due to newer busybox
-rwxr-xr-xmodules.d/slx-network/scripts/udhcpc-trigger.stage32
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/slx-network/scripts/udhcpc-trigger.stage3 b/modules.d/slx-network/scripts/udhcpc-trigger.stage3
index d806d147..6c357138 100755
--- a/modules.d/slx-network/scripts/udhcpc-trigger.stage3
+++ b/modules.d/slx-network/scripts/udhcpc-trigger.stage3
@@ -67,7 +67,7 @@ rm -f -- "/etc/resolv.conf"
reverse_lookup() {
[ -z "$dns" ] && return
[ -z "$1" ] && return
- timeout 3 nslookup "$1" | grep -E "^Address +[0-9]+: +$1 " | head -n 1 | awk '{print $4}'
+ timeout 3 nslookup "$1" | awk '{if ($2 == "name") { print $4; exit; } }'
}
echo "# From DHCP in stage 3.1" >> "$NETWORK_CONF"