summaryrefslogtreecommitdiffstats
path: root/core/rootfs
diff options
context:
space:
mode:
authorSimon Rettberg2020-08-05 12:24:05 +0200
committerSimon Rettberg2020-08-05 12:24:05 +0200
commitc1ee501afe8fc4116995c4b35bfca2a253b24f36 (patch)
tree76e48abff4dbd253ad536009001142f6b266d63e /core/rootfs
parent[xorg] Force using old i965 OpenGL driver on intel (diff)
downloadmltk-c1ee501afe8fc4116995c4b35bfca2a253b24f36.tar.gz
mltk-c1ee501afe8fc4116995c4b35bfca2a253b24f36.tar.xz
mltk-c1ee501afe8fc4116995c4b35bfca2a253b24f36.zip
[rootfs-stage31] busybox timeout doesn't know -t
Diffstat (limited to 'core/rootfs')
-rwxr-xr-xcore/rootfs/rootfs-stage31/data/inc/udhcpc-trigger4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger b/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
index 5ec15a74..818adf45 100755
--- a/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
+++ b/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
@@ -73,7 +73,7 @@ done
if [ -z "$domain" ] && [ -n "$dns" ]; then
# try to get domain via reverse lookup if empty
echo "..trying to get domain via DNS, as DHCP didn't supply one.."
- fqdn=$(timeout -t 3 nslookup "$ip" | awk '{if ($2 == "name") { print $4; exit; } }')
+ fqdn=$(timeout 3 nslookup "$ip" | awk '{if ($2 == "name") { print $4; exit; } }')
domain="${fqdn#*.}"
fi
# Add domain to list of search domains if not in there yet
@@ -106,7 +106,7 @@ done
if [ -z "$hostname" ]; then
# as with domain, if there's no hostname, try to get via DNS
echo "..trying to get hostname via DNS, as DHCP didn't supply one.."
- [ -z "$fqdn" ] && [ -n "$dns" ] && fqdn=$(timeout -t 3 nslookup "$ip" | awk '{if ($2 == "name") { print $4; exit; } }')
+ [ -z "$fqdn" ] && [ -n "$dns" ] && fqdn=$(timeout 3 nslookup "$ip" | awk '{if ($2 == "name") { print $4; exit; } }')
hostname="${fqdn%%.*}"
elif [ -n "$domain" ]; then
fqdn="${hostname}.${domain}"