diff options
author | Daniel Golle <daniel@makrotopia.org> | 2017-04-05 13:21:54 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2017-05-20 03:23:48 +0200 |
commit | 4237ae4890c0466b4424792f120c708e0d57feac (patch) | |
tree | d95ec481aa60d04ad95d3a2e26692605ff70838e /net/isc-dhcp/files/dhcpd.defaults | |
parent | 095546103998c9bc3aa797008e3c3378cf0c8b70 (diff) |
isc-dhcp: integrate IPv4 DHCP service with procd and netifd
Convert init-script to procd and allow to configure
isc-dhcp-server via UCI. Allow most by-network and by-host options
supported by dnsmasq.
User-defined dhcp-options are not supported yet, neither are tags.
Existing configurations with use-edited /etc/dhcpd.conf are still
respected, hence to enjoy the new features you have to migrate
your configuration to UCI and delete /etc/dhcpd.conf.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'net/isc-dhcp/files/dhcpd.defaults')
-rw-r--r-- | net/isc-dhcp/files/dhcpd.defaults | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/isc-dhcp/files/dhcpd.defaults b/net/isc-dhcp/files/dhcpd.defaults new file mode 100644 index 000000000..bd6f3d2b1 --- /dev/null +++ b/net/isc-dhcp/files/dhcpd.defaults @@ -0,0 +1,11 @@ +#!/bin/sh +uci -q get dhcp.isc_dhcpcd && exit 0 +touch /etc/config/dhcp + +uci batch <<EOF +set dhcp.isc_dhcpd=isc_dhcpd +set dhcp.isc_dhcpd.authoritative='1' +set dhcp.isc_dhcpd.default_lease_time='3600' +set dhcp.isc_dhcpd.max_lease_time='86400' +commit dhcp +EOF |