diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-02-18 22:00:36 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-02-18 22:00:36 +0000 |
commit | cd978f453150d365b20171d53a0d151245e373cc (patch) | |
tree | 244554354e38cc79a59c4ff2422d0a82dcdfb039 /package/dnsmasq/files/dnsmasq.init | |
parent | 357ed07a8402bd0146feb09bbf3ca2cfab4c922d (diff) | |
download | upstream-cd978f453150d365b20171d53a0d151245e373cc.tar.gz upstream-cd978f453150d365b20171d53a0d151245e373cc.tar.bz2 upstream-cd978f453150d365b20171d53a0d151245e373cc.zip |
make "name" parameter optional in dnsmasq "boot" config sections
SVN-Revision: 14557
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 3 |
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" } |