dnsmasq: peacefully coexist with ISC DHCPd
Similar to odhcpd, allow using ISC DHCPd instead of dnsmasq. Disable DHCP and/or DHCP6 in case ISC DHCP is present and enabled. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
4a4c00e7c4
commit
1c42598b7d
1 changed files with 9 additions and 0 deletions
|
@ -720,6 +720,15 @@ dnsmasq_start()
|
|||
DNSMASQ_DHCP_VER=4
|
||||
fi
|
||||
|
||||
# Allow DHCP/DHCPv6 to be handled by ISC DHCPD
|
||||
if [ -x /usr/sbin/dhcpd ] ; then
|
||||
if [ -x /etc/init.d/dhcpd ] ; then
|
||||
/etc/init.d/dhcpd enabled && DNSMASQ_DHCP_VER=0
|
||||
fi
|
||||
if [ -x /etc/init.d/dhcpd6 -a "$DNSMASQ_DHCP_VER" -gt 0 ] ; then
|
||||
/etc/init.d/dhcpd6 enabled && DNSMASQ_DHCP_VER=4
|
||||
fi
|
||||
fi
|
||||
|
||||
append_bool "$cfg" authoritative "--dhcp-authoritative"
|
||||
append_bool "$cfg" nodaemon "--no-daemon"
|
||||
|
|
Loading…
Reference in a new issue