1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:11:32 +02:00

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
This commit is contained in:
nbd 2007-04-12 18:49:02 +00:00
parent 270fe35d13
commit a5628b31a4

View File

@ -40,7 +40,7 @@ dhcp_add() {
# check for an already active dhcp server on the interface, unless 'force' is set # check for an already active dhcp server on the interface, unless 'force' is set
config_get_bool force "$cfg" force 0 config_get_bool force "$cfg" force 0
[ "$force" -gt 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 config_get start "$cfg" start