mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:37:10 +02:00
Add support for SRV records to dnsmasq config parsing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21400 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
079f166ebb
commit
e6d4343455
@ -310,6 +310,23 @@ dhcp_domain_add() {
|
||||
done
|
||||
}
|
||||
|
||||
dhcp_srv_add() {
|
||||
local cfg="$1"
|
||||
|
||||
config_get srv "$cfg" srv
|
||||
[ -n "$srv" ] || return 0
|
||||
|
||||
config_get target "$cfg" target
|
||||
[ -n "$target" ] || return 0
|
||||
|
||||
config_get port "$cfg" port
|
||||
|
||||
local service="$srv,$target"
|
||||
[ -n "$port" ] && service="$service,$port"
|
||||
|
||||
append args "-W $service"
|
||||
}
|
||||
|
||||
start() {
|
||||
include /lib/network
|
||||
scan_interfaces
|
||||
@ -326,6 +343,7 @@ start() {
|
||||
config_foreach dhcp_remoteid_add remoteid
|
||||
config_foreach dhcp_subscrid_add subscrid
|
||||
config_foreach dhcp_domain_add domain
|
||||
config_foreach dhcp_srv_add srvhost
|
||||
config_foreach dhcp_add dhcp
|
||||
|
||||
/usr/sbin/dnsmasq $args && {
|
||||
|
Loading…
Reference in New Issue
Block a user