diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-04-12 18:49:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-04-12 18:49:02 +0000 |
commit | f3f941db39b21bdc1d629bac281f53ffb2a5eea1 (patch) | |
tree | 90cc25bac5012c3bb77c4b8c3315049e4925a386 /package/dnsmasq/files/dnsmasq.init | |
parent | 8857381856cbc12fb8dab9141abd67c3af874e55 (diff) | |
download | upstream-f3f941db39b21bdc1d629bac281f53ffb2a5eea1.tar.gz upstream-f3f941db39b21bdc1d629bac281f53ffb2a5eea1.tar.bz2 upstream-f3f941db39b21bdc1d629bac281f53ffb2a5eea1.zip |
dnsmasq: speed up the dhcp server detection (one try is enough)
SVN-Revision: 6941
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 118564954f..1d4cc5a995 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -40,7 +40,7 @@ dhcp_add() { # check for an already active dhcp server on the interface, unless 'force' is set config_get_bool force "$cfg" force 0 [ "$force" -gt 0 ] || { - udhcpc -n -q -R -s /bin/true -i $ifname >&- && return 0 + udhcpc -n -q -R -s /bin/true -t 1 -i $ifname >&- && return 0 } config_get start "$cfg" start |