aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index d491e8906..e2fb18aba 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -1484,7 +1484,13 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
1484 bb_error_msg("no lease, forking to background"); 1484 bb_error_msg("no lease, forking to background");
1485 client_background(); 1485 client_background();
1486 /* do not background again! */ 1486 /* do not background again! */
1487 opt = ((opt & ~OPT_b) | OPT_f); 1487 opt = ((opt & ~(OPT_b|OPT_n)) | OPT_f);
1488 /* ^^^ also disables -n (-b takes priority over -n):
1489 * ifup's default udhcpc options are -R -n,
1490 * and users want to be able to add -b
1491 * (in a config file) to make it background
1492 * _and not exit_.
1493 */
1488 } else 1494 } else
1489#endif 1495#endif
1490 if (opt & OPT_n) { /* abort if no lease */ 1496 if (opt & OPT_n) { /* abort if no lease */