summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
authorSimon Rettberg2014-12-04 13:59:13 +0100
committerSimon Rettberg2014-12-04 13:59:13 +0100
commitf886cea4c11b47d47480afbd446f5390f46e1cc1 (patch)
treef16746f4bb13a6b573e025d3482d5242ece50ff9 /remote/modules
parent[cups] Fix Dell PPD (diff)
downloadtm-scripts-f886cea4c11b47d47480afbd446f5390f46e1cc1.tar.gz
tm-scripts-f886cea4c11b47d47480afbd446f5390f46e1cc1.tar.xz
tm-scripts-f886cea4c11b47d47480afbd446f5390f46e1cc1.zip
Use 3 seconds timeout for reverse lookups everywhere
Diffstat (limited to 'remote/modules')
-rwxr-xr-xremote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx b/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
index 66ab2189..dd8cd8ba 100755
--- a/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
+++ b/remote/modules/dhcpc-busybox/data/opt/openslx/scripts/udhcpc-openslx
@@ -78,7 +78,7 @@ case "$1" in
fi
# get domain, hostname and thus fqdn from DNS
- dns_fqdn=$(rdns "$ip")
+ dns_fqdn=$(/opt/openslx/bin/busybox timeout -t 3 rdns "$ip")
dns_short="${dns_fqdn%%.*}"
# check if it is fqdn
if [ "$dns_fqdn" == "$dns_short" ]; then