From: Justin Maggard Date: Wed, 12 Aug 2009 23:26:17 +0000 (+0200) Subject: udhcpc: if got IP successfully, disable -n for future renewals X-Git-Tag: 1_15_0~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa369e0f0d37ba915616d77154ca8e99fb4d71b5;p=oweals%2Fbusybox.git udhcpc: if got IP successfully, disable -n for future renewals Signed-off-by: Justin Maggard Signed-off-by: Denys Vlasenko --- diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index fbb645749..ccc0393f2 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -637,6 +637,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) perform_release(requested_ip, server_addr); goto ret0; } + /* future renew failures should not exit (JM) */ + opt &= ~OPT_n; #if BB_MMU /* NOMMU case backgrounded earlier */ if (!(opt & OPT_f)) { client_background();