Skip to content
Snippets Groups Projects
Commit f3f941db authored by Felix Fietkau's avatar Felix Fietkau
Browse files

dnsmasq: speed up the dhcp server detection (one try is enough)

SVN-Revision: 6941
parent 88573818
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment