% require "luci.fs" --local has_dhcp = luci.fs.access("/etc/config/dhcp") local has_dhcp = false local uci = require "luci.model.uci".cursor() uci.foreach("dhcp", "dhcp", function(s) if not s.ignore or s.ignore != '1' then has_dhcp = true end end) -%> <% if has_dhcp then %>
<% end %>