diff options
author | Jonathan Bauer | 2020-08-07 14:33:25 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-08-07 14:33:25 +0200 |
commit | 136de76d7ffcb02a0edc189b7f2f9ec320e64cf0 (patch) | |
tree | 58f9f2ea1a5897cccc7632a507c7bdd41d7d5721 /modules.d/slx-network/scripts/udhcpc-trigger.stage3 | |
parent | [busybox/slx-splash] update busybox/splash (diff) | |
download | systemd-init-136de76d7ffcb02a0edc189b7f2f9ec320e64cf0.tar.gz systemd-init-136de76d7ffcb02a0edc189b7f2f9ec320e64cf0.tar.xz systemd-init-136de76d7ffcb02a0edc189b7f2f9ec320e64cf0.zip |
[slx-network] fix -t with busybox's timeout
Diffstat (limited to 'modules.d/slx-network/scripts/udhcpc-trigger.stage3')
-rwxr-xr-x | modules.d/slx-network/scripts/udhcpc-trigger.stage3 | 2 |
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 27c0f22a..25d036c8 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 -t 3 nslookup "$1" | grep -E "^Address +[0-9]+: +$1 " | head -n 1 | awk '{print $4}' + timeout 3 nslookup "$1" | grep -E "^Address +[0-9]+: +$1 " | head -n 1 | awk '{print $4}' } echo "# From DHCP in stage 3.1" >> "$NETWORK_CONF" |