-
Notifications
You must be signed in to change notification settings - Fork 129
Add support for /etc/dhcpcd/hooks/ #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Administrator added scripts are /etc/dhcpcd.enter-hook and /etc/dhcpcd.exit-hook. |
BUILDING.md already has this:
I think it's already explained there? |
That still doesn't tell us which one is which or what configure keys to use for either case. |
datadir defaults to /usr/share and libexecdir defaults to /libexec. I used the gnu configure variables here to make life easy I thought? |
The variables' name remains opaque. It leaves downstream guessing.
...apparently results in:
I emphasize apparently because it I wouldn't have known without experimenting with the configure options, which is how –among other thigns– I found out that What option would populate the EGHOOKSCRIPTS line and what it's used for remains opaque. "We install this here and that there" doesn't tell us much. i.e. BUILDING.md needs to show an example for both cases:
This leaves EGHOOKSCRIPTS undocumented. |
Looking into the source code for dhcpcd-run-hooks, I notice:
Could this possibly be converted to:
...for upcoming releases, @rsmarples? This would probably accomplish what was requested at Debian. |
Sorry for not doing anything on this for a while. If we're going to have an /etc/dhcpcd to avoid putting many things directly into /etc then we should move the config layout as well. Maybe something like this?
/etc/dhcpcd could then be a symlink to |
In its current form, dhcpcd ships its configured hooks in --libexecdir and its extra sample hooks in /usr/share/dhcpcd/hooks/.
It would be desirable for dhcpcd to also source e.g. /etc/dhcpcd/hooks/ for administrator-added scripts.
At the same time, it would be desirable for BUILDING.md or README.md to document the existence of EGHOOKSCRIPTS and explain the difference with HOOKSCRIPTS.
The text was updated successfully, but these errors were encountered: