summaryrefslogtreecommitdiff
path: root/package/dnsmasq/files
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-02-18 22:00:36 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-02-18 22:00:36 +0000
commit64b2ab7e6287b26350b89c9ee160d461a983ce39 (patch)
tree65e8fa15555d62ab0f5aa8136f74ae278970ac00 /package/dnsmasq/files
parent8e777a33d87738a9f197df05c8ed312c050ea26f (diff)
[package] make "name" parameter optional in dnsmasq "boot" config sections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14557 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r--package/dnsmasq/files/dnsmasq.init3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 6cb0e0f4fa..870414900f 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -182,7 +182,6 @@ dhcp_boot_add() {
local cfg="$1"
config_get name "$cfg" name
- [ -n "$name" ] || return 0
config_get filename "$cfg" filename
[ -n "$filename" ] || return 0
@@ -193,7 +192,7 @@ dhcp_boot_add() {
config_get serveraddress "$cfg" serveraddress
[ -n "$serveraddress" ] || return 0
- append args "--dhcp-boot=net:$name,$filename,$servername,$serveraddress"
+ append args "--dhcp-boot=${name:+net:$name,}$filename,$servername,$serveraddress"
dhcp_option_add "$cfg" "$name"
}