mirror of
https://github.com/openwrt/openwrt.git
synced 2026-07-20 16:11:59 +04:00
d2f17ddd39
proto/dhcp.sh hardcoded `-t 0` (infinite retries) with no way for UCI / operator to tune per-retry interval (udhcpc -T), retry count (udhcpc -t) or failure retry-loop wait (udhcpc -A). Add three new proto config ints (timeout, retry, tryagain) and thread them into the udhcpc command line. Unset options preserve existing behaviour: retry defaults to 0, timeout and tryagain are omitted so udhcpc uses its own RFC defaults. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>