From a5628b31a4092369fcec6966fbddddd282cd6d08 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 12 Apr 2007 18:49:02 +0000 Subject: 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 --- package/dnsmasq/files/dnsmasq.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3