mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
dnsmasq: add dnsmasq.d config folder & improve odhcpd coexistence
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39312 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
00769bba6c
commit
39ecf08d2d
@ -158,8 +158,9 @@ dnsmasq() {
|
||||
config_get hostsfile "$cfg" dhcphostsfile
|
||||
[ -e "$hostsfile" ] && xappend "--dhcp-hostsfile=$hostsfile"
|
||||
|
||||
mkdir -p /tmp/hosts
|
||||
mkdir -p /tmp/hosts /tmp/dnsmasq.d
|
||||
xappend "--addn-hosts=/tmp/hosts"
|
||||
xappend "--conf-dir=/tmp/dnsmasq.d"
|
||||
|
||||
local rebind
|
||||
config_get_bool rebind "$cfg" rebind_protection 1
|
||||
@ -559,7 +560,12 @@ start_service() {
|
||||
config_foreach dhcp_srv_add srvhost
|
||||
config_foreach dhcp_mx_add mxhost
|
||||
echo >> $CONFIGFILE
|
||||
config_foreach dhcp_add dhcp
|
||||
|
||||
config_get odhcpd_is_active odhcpd maindhcp
|
||||
if [ "$odhcpd_is_active" != "1" ]; then
|
||||
config_foreach dhcp_add dhcp
|
||||
fi
|
||||
|
||||
echo >> $CONFIGFILE
|
||||
config_foreach dhcp_cname_add cname
|
||||
echo >> $CONFIGFILE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user