summaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-03-13 08:39:08 +0000
committerJohn Crispin <john@openwrt.org>2015-03-13 08:39:08 +0000
commitba21cbae3eff092d17856c01315ac0e0ce2b3a10 (patch)
tree02e23503d89edd4d04a11288273a7af085161015 /package/network
parent45c34eec46e73e58ebd8861cb4c4816f8ffe65d0 (diff)
downloadmaster-31e0f0ae-ba21cbae3eff092d17856c01315ac0e0ce2b3a10.tar.gz
master-31e0f0ae-ba21cbae3eff092d17856c01315ac0e0ce2b3a10.tar.bz2
master-31e0f0ae-ba21cbae3eff092d17856c01315ac0e0ce2b3a10.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> SVN-Revision: 44747
Diffstat (limited to 'package/network')
-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