treewide: avoid double-escaping CBI section labels
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_dnsmasq.sh
index 504aaee804360d5fe2cc2768a3614ce47b51f03a..9297f9175edcbf9f25bc9f399039886cad38d346 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. /etc/functions.sh
+. /lib/functions.sh
 . $dir/functions.sh
 
 # Set dnsmasq config
@@ -21,7 +21,7 @@ EOF
 config_get addnhosts dnsmasq addnhosts
 if [ -z "${addnhosts/\var\/etc\/hosts.olsr/}" ]; then
        uci add_list dhcp.dnsmasq.addnhosts="/var/etc/hosts.olsr"
-       if [ "$profile_ipv6" = 1 ]; then
+       if [ "$ipv6_enabled" = 1 ]; then
                uci add_list dhcp.dnsmasq.addnhosts="/var/etc/hosts.olsr.ipv6"
        fi
 fi