X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=contrib%2Fpackage%2Fmeshwizard%2Ffiles%2Fusr%2Fbin%2Fmeshwizard%2Fhelpers%2Fsetup_dnsmasq.sh;h=2b32f24ab2b691604ad9aac4c7b0496366b7ad99;hb=a4a93146515a28e6cc14560700c573b6cd788172;hp=26a896bc7ba982ebbcc6a7dccfedc38636eef0ac;hpb=5654bb7ef6e72734f1f3fcfd6ce2ee1382d8335a;p=project%2Fluci.git diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_dnsmasq.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_dnsmasq.sh index 26a896bc7..2b32f24ab 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_dnsmasq.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_dnsmasq.sh @@ -13,8 +13,10 @@ handle_dhcp() { config_load dhcp config_foreach handle_dhcp dnsmasq -uci set dhcp.dnsmasq.local="/$profile_suffix/" -uci set dhcp.dnsmasq.domain="$profile_suffix" +uci batch << EOF + set dhcp.dnsmasq.local="/$profile_suffix/" + set dhcp.dnsmasq.domain="$profile_suffix" +EOF config_get addnhosts dnsmasq addnhosts if [ -z "${addnhosts/\var\/etc\/hosts.olsr/}" ]; then