1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-04 21:02:21 +03:00

dnsmasq: Use a more intelligent way of parsing dhcp-options using the new UCI list datatype

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12547 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cyrus 2008-09-07 20:07:55 +00:00
parent 2c8a0b905f
commit 8f3994960d

View File

@ -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
}