projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fefd23f
)
dnsmasq: Use a more intelligent way of parsing dhcp-options using the new UCI list...
author
Steven Barth
<cyrus@openwrt.org>
Sun, 7 Sep 2008 20:07:55 +0000
(20:07 +0000)
committer
Steven Barth
<cyrus@openwrt.org>
Sun, 7 Sep 2008 20:07:55 +0000
(20:07 +0000)
SVN-Revision: 12547
package/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 8643349573d1064756e886a7e64d922a461af263..4fddc4723289d10854c7f61ad7bbfc60f838d023 100644
(file)
--- a/
package/dnsmasq/files/dnsmasq.init
+++ b/
package/dnsmasq/files/dnsmasq.init
@@
-242,13
+242,9
@@
dhcp_option_add() {
local cfg="$1"
local name="$2"
- for count in $(seq 0 100); do
- eval current_value=\$CONFIG_"$cfg"_dhcp"$count"
- if [ -z "$current_value" ]; then
- let "count-=1"
- break
- fi
- append args "-O $name","$current_value"
+ config_get dhcp_option "$cfg" dhcp_option
+ for o in $dhcp_option; do
+ append args "-O $name","$o"
done
}