[Buildroot] [PATCH v3 11/13] package/dhcp: systemd: support IPv6 lease file

Maxime Hadjinlian maxime.hadjinlian at gmail.com
Wed Nov 4 10:21:52 UTC 2015


Hi Benoit, all

On Sun, Oct 25, 2015 at 2:59 AM, Benoît Thébaudeau <
benoit.thebaudeau.dev at gmail.com> wrote:

> The IPv6 lease file has a different name.
>
> Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev at gmail.com>
>
> ---
> Changes v2 -> v3: new patch.
> ---
>  package/dhcp/dhcp.mk | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
> index c05e694..3aa1577 100644
> --- a/package/dhcp/dhcp.mk
> +++ b/package/dhcp/dhcp.mk
> @@ -83,6 +83,8 @@ define DHCP_INSTALL_INIT_SYSTEMD
>                 $(TARGET_DIR)/usr/lib/tmpfiles.d/dhcpd.conf
>         echo "f /var/lib/dhcp/dhcpd.leases - - - - -" >> \
>                 $(TARGET_DIR)/usr/lib/tmpfiles.d/dhcpd.conf
> +       echo "f /var/lib/dhcp/dhcpd6.leases - - - - -" >> \
> +               $(TARGET_DIR)/usr/lib/tmpfiles.d/dhcpd.conf
>  endef
>  endif
>
> Reviewed-by: "Maxime Hadjinlian" <maxime.hadjinlian at gmail.com>

A question though, from the manual page of dhcpd, by default it starts as
an IPv6 server should we have, two services one with '-4' and one with '-6'
? And it's left to the user to specify it in the "$OPTIONS" ? Maybe this
should be mentioned somewhere ?

> --
> 2.1.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20151104/9be81378/attachment.html>


More information about the buildroot mailing list