Skip to content
Snippets Groups Projects
Commit 05118305 authored by Steven Barth's avatar Steven Barth
Browse files

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

SVN-Revision: 12547
parent fefd23fe
No related branches found
No related tags found
No related merge requests found
...@@ -242,13 +242,9 @@ dhcp_option_add() { ...@@ -242,13 +242,9 @@ dhcp_option_add() {
local cfg="$1" local cfg="$1"
local name="$2" local name="$2"
for count in $(seq 0 100); do config_get dhcp_option "$cfg" dhcp_option
eval current_value=\$CONFIG_"$cfg"_dhcp"$count" for o in $dhcp_option; do
if [ -z "$current_value" ]; then append args "-O $name","$o"
let "count-=1"
break
fi
append args "-O $name","$current_value"
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment