diff options
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index 38c91cbb4..8a4a4b7a5 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -1370,7 +1370,13 @@ int udhcpc6_main(int argc UNUSED_PARAM, char **argv) | |||
1370 | bb_error_msg("no lease, forking to background"); | 1370 | bb_error_msg("no lease, forking to background"); |
1371 | client_background(); | 1371 | client_background(); |
1372 | /* do not background again! */ | 1372 | /* do not background again! */ |
1373 | opt = ((opt & ~OPT_b) | OPT_f); | 1373 | opt = ((opt & ~(OPT_b|OPT_n)) | OPT_f); |
1374 | /* ^^^ also disables -n (-b takes priority over -n): | ||
1375 | * ifup's default udhcpc options are -R -n, | ||
1376 | * and users want to be able to add -b | ||
1377 | * (in a config file) to make it background | ||
1378 | * _and not exit_. | ||
1379 | */ | ||
1374 | } else | 1380 | } else |
1375 | #endif | 1381 | #endif |
1376 | if (opt & OPT_n) { /* abort if no lease */ | 1382 | if (opt & OPT_n) { /* abort if no lease */ |