mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-21 15:54:43 +02:00
[package] dnsmasq: add more options for interface binding (#4900)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15172 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
12d07c1962
commit
43e3feff80
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=dnsmasq
|
PKG_NAME:=dnsmasq
|
||||||
PKG_VERSION:=2.47
|
PKG_VERSION:=2.47
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
|
||||||
|
@ -12,6 +12,8 @@ config dnsmasq
|
|||||||
option leasefile '/tmp/dhcp.leases'
|
option leasefile '/tmp/dhcp.leases'
|
||||||
option resolvfile '/tmp/resolv.conf.auto'
|
option resolvfile '/tmp/resolv.conf.auto'
|
||||||
#list server '/mycompany.local/1.2.3.4'
|
#list server '/mycompany.local/1.2.3.4'
|
||||||
|
#option nonwildcard 0
|
||||||
|
#option interfaces ''
|
||||||
|
|
||||||
config dhcp lan
|
config dhcp lan
|
||||||
option interface lan
|
option interface lan
|
||||||
|
@ -57,6 +57,7 @@ dnsmasq() {
|
|||||||
append_bool "$cfg" boguspriv "-b"
|
append_bool "$cfg" boguspriv "-b"
|
||||||
append_bool "$cfg" expandhosts "-E"
|
append_bool "$cfg" expandhosts "-E"
|
||||||
append_bool "$cfg" enable_tftp "--enable-tftp"
|
append_bool "$cfg" enable_tftp "--enable-tftp"
|
||||||
|
append_bool "$cfg" nonwildcard "-z"
|
||||||
|
|
||||||
append_parm "$cfg" dnsforwardmax "-0"
|
append_parm "$cfg" dnsforwardmax "-0"
|
||||||
append_parm "$cfg" port "-p"
|
append_parm "$cfg" port "-p"
|
||||||
@ -71,6 +72,7 @@ dnsmasq() {
|
|||||||
append_parm "$cfg" "resolvfile" "-r"
|
append_parm "$cfg" "resolvfile" "-r"
|
||||||
append_parm "$cfg" "tftp_root" "--tftp-root"
|
append_parm "$cfg" "tftp_root" "--tftp-root"
|
||||||
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
|
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
|
||||||
|
append_parm "$cfg" "interfaces" "-i"
|
||||||
|
|
||||||
config_get leasefile $cfg leasefile
|
config_get leasefile $cfg leasefile
|
||||||
[ -e "$leasefile" ] || touch "$leasefile"
|
[ -e "$leasefile" ] || touch "$leasefile"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user