summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-network/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/slx-network/scripts')
-rwxr-xr-xmodules.d/slx-network/scripts/udhcpc-trigger.stage32
-rwxr-xr-xmodules.d/slx-network/scripts/udhcpc-trigger.stage42
2 files changed, 2 insertions, 2 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"
diff --git a/modules.d/slx-network/scripts/udhcpc-trigger.stage4 b/modules.d/slx-network/scripts/udhcpc-trigger.stage4
index d7009dc6..c2ea566a 100755
--- a/modules.d/slx-network/scripts/udhcpc-trigger.stage4
+++ b/modules.d/slx-network/scripts/udhcpc-trigger.stage4
@@ -74,7 +74,7 @@ case "$1" in
fi
# get domain, hostname and thus fqdn from DNS
- dns_fqdn=$(busybox timeout -t 3 rdns "$ip")
+ dns_fqdn=$(busybox timeout 3 rdns "$ip")
dns_short="${dns_fqdn%%.*}"
# check if it is fqdn
if [ "$dns_fqdn" == "$dns_short" ]; then