Move the odhcpd lease state file from /tmp/hosts/odhcpd to /var/run/hosts.d/odhcpd.leases.
The motivation of this change is to align the lease state file (which essentially is a commented hosts(5) format) location with the one used by dnsmasq for the temporary hosts(5) file holding user-assigned static DHCP lease host names. Signed-off-by: Jo-Philipp Wich <j...@mein.io> --- package/network/services/odhcpd/files/odhcpd.defaults | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/odhcpd/files/odhcpd.defaults b/package/network/services/odhcpd/files/odhcpd.defaults index cecbdd4a8d..4ea00a82b3 100644 --- a/package/network/services/odhcpd/files/odhcpd.defaults +++ b/package/network/services/odhcpd/files/odhcpd.defaults @@ -20,7 +20,7 @@ esac uci batch <<EOF set dhcp.odhcpd=odhcpd set dhcp.odhcpd.maindhcp=0 -set dhcp.odhcpd.leasefile=/tmp/hosts/odhcpd +set dhcp.odhcpd.leasefile=/var/run/hosts.d/odhcpd set dhcp.odhcpd.leasetrigger=/usr/sbin/odhcpd-update set dhcp.odhcpd.loglevel=4 set dhcp.lan.dhcpv6=$MODE -- 2.15.1 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev