diff mbox series

[LEDE-DEV,RFC,2/2] odhcpd: adjust configuration default

Message ID 20180502160251.16944-3-jo@mein.io
State RFC
Headers show
Series Adjust DHCP/DNS defaults for better consistency | expand

Commit Message

Jo-Philipp Wich May 2, 2018, 4:02 p.m. UTC
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 <jo@mein.io>
---
 package/network/services/odhcpd/files/odhcpd.defaults | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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