dhcpcd-discuss

$skip_hooks empty for some $reason values

Scott Leggett

Fri May 15 16:42:27 2020

Hi,

I've been debugging why my /etc/resolv.conf is overwritten by dhcpcd
even though I've set a global "nohook resolv.conf" option in my
dhcpcd.conf file.

After adding some debug code to the dhcpcd-run-hooks script I've found
that it is invoked for some $reason values with an empty $skip_hooks
variable.

Specifically, on these $reason values $skip_hooks is empty:

* STOPPED
* PREINIT
* NOCARRIER

Is this intentional? If so I guess the 20-resolve.conf hook needs a
patch to avoid updating /etc/resolv.conf on those $reason values?

-- 
Regards,
Scott Leggett.

Attachment: signature.asc
Description: PGP signature


Follow-Ups:
Re: $skip_hooks empty for some $reason valuesRoy Marples
Archive administrator: postmaster@marples.name