aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-03-13 08:39:08 +0000
committerJohn Crispin <blogic@openwrt.org>2015-03-13 08:39:08 +0000
commit0c0a9bb5f68af7112f992ccd024fd64010fdfd62 (patch)
tree55673b72d0b9058e963183ffa61e3c4bb1a98240 /package/network/services
parentc5c4f4131b54b323cc93e694cf417e12d94acea2 (diff)
downloadupstream-0c0a9bb5f68af7112f992ccd024fd64010fdfd62.tar.gz
upstream-0c0a9bb5f68af7112f992ccd024fd64010fdfd62.tar.bz2
upstream-0c0a9bb5f68af7112f992ccd024fd64010fdfd62.zip
dnsmasq: enable pxe-prompt, pxe-service config options
DNSMASQ has the ability to provide a menu to a pxeboot system, using the --pxe-prompt and --pxe-service configuration options. The current init.d script converting the "dhcp" file to "dnsmasq.conf" does not find these options, but they are supported. This patch thus enables the options. Signed-off-by: Derek LaHousse <dlahouss@mtu.edu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44747 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index fb118d5756..a0197ef764 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -107,6 +107,10 @@ append_bogusnxdomain() {
xappend "--bogus-nxdomain=$1"
}
+append_pxe_service() {
+ xappend "--pxe-service=$1"
+}
+
dnsmasq() {
local cfg="$1"
append_bool "$cfg" authoritative "--dhcp-authoritative"
@@ -151,7 +155,8 @@ dnsmasq() {
append_parm "$cfg" "tftp_root" "--tftp-root"
append_parm "$cfg" "dhcp_boot" "--dhcp-boot"
append_parm "$cfg" "local_ttl" "--local-ttl"
-
+ append_parm "$cfg" "pxe_prompt" "--pxe-prompt"
+ config_list_foreach "$cfg" "pxe_service" append_pxe_service
config_get DOMAIN "$cfg" domain
config_get_bool ADD_LOCAL_DOMAIN "$cfg" add_local_domain 1