mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-26 07:56:42 +04:00
dnsmasq: speed up the dhcp server detection (one try is enough)
SVN-Revision: 6941
This commit is contained in:
1 parent
8857381856
commit
f3f941db39
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user