ke 30.4.2025 klo 15.21 Daniel Gröber (d...@darkboxed.org) kirjoitti:
> On Thu, Apr 17, 2025 at 03:24:33PM +0200, Laurent Bigonville wrote:
> > Would be a good idea to move the dhcpcd-run-hooks and the dhcpcd-hooks
> > directory
>
> So we're talking about these:
>
>     /usr/lib/dhcpcd/dhcpcd-hooks/01-test
>     /usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
>     /usr/lib/dhcpcd/dhcpcd-hooks/30-hostname
>
> > [move] to /usr/libexec
>
> To what end?

Pedantic respect of FHS, which Laurent rightfully hopes to achieve.

To me, the problem is Lintian complaining that what's in our
subdirectory lacks the shebang (but the script that sources them has
it) i.e. /usr/lib/dhcpcd/dhcpcd-run-hooks has the shebang, but
everything inside /usr/lib/dhcpcd/dhcpcd-hooks lacks it.

> Looking more closesly at dhcpcd-base I'm actually confused. In addtion to
> /usr/lib/dhcpcd/dhcpcd-hooks/ there's also eg.  /usr/share/dhcpcd/hooks/
> wich has more numbered scripts:
>
>     /usr/share/dhcpcd/hooks/10-wpa_supplicant
>     /usr/share/dhcpcd/hooks/15-timezone
>     /usr/share/dhcpcd/hooks/29-lookup-hostname
>
> What's the difference?

See https://github.com/NetworkConfiguration/dhcpcd/issues/494

Those are sample scripts that are not installed by default (but might
be symbolically linked by the administrator if needed).

Martin-Éric

Reply via email to