File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -522,18 +522,19 @@ option instead.
522522Timeout after
523523.Ar seconds ,
524524instead of the default 30.
525+ On timeout,
526+ .Nm
527+ will exit if the
528+ .Fl 1 ,
529+ .Fl Fl oneshot
530+ option has been given,
531+ otherwise it will fork into the background and keep on
532+ trying.
525533A setting of 0
526534.Ar seconds
527535causes
528536.Nm
529537to wait forever to get a lease.
530- If
531- .Nm
532- is working on a single interface then
533- .Nm
534- will exit when a timeout occurs, otherwise
535- .Nm
536- will fork into the background.
537538.It Fl u , Fl Fl userclass Ar class
538539Tags the DHCPv4 message with the userclass
539540.Ar class .
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ handle_exit_timeout(void *arg)
198198
199199ctx = arg ;
200200logerrx ("timed out" );
201- if (!( ctx -> options & DHCPCD_MANAGER ) ) {
201+ if (ctx -> options & DHCPCD_ONESHOT ) {
202202struct interface * ifp ;
203203
204204TAILQ_FOREACH (ifp , ctx -> ifaces , next ) {
You can’t perform that action at this time.
0 commit comments