aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-12 18:49:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-12 18:49:02 +0000
commit07bdd5fe16bc0ebca83a00a8628be925c2956540 (patch)
treea6f3e55c43063657670a05ad5160a325796c1429 /package/dnsmasq
parent9767c1a7e0f1a71662de8d50bbca239241809656 (diff)
downloadupstream-07bdd5fe16bc0ebca83a00a8628be925c2956540.tar.gz
upstream-07bdd5fe16bc0ebca83a00a8628be925c2956540.tar.bz2
upstream-07bdd5fe16bc0ebca83a00a8628be925c2956540.zip
dnsmasq: speed up the dhcp server detection (one try is enough)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6941 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dnsmasq.init2
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