<%# Opennet Firmware Copyright 2015 Lars Kruse Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> <%+header%>

<%:Services in the Opennet%>

<% local uci = require "luci.model.uci" local cursor = uci.cursor() require("luci.model.opennet.funcs") %>
<%:Service settings%>
<%:Nodes in the Opennet can announce various services. These services can be used by other nodes. The most important services are Internet access, DNS and NTP.%>
<%# Dienste-Sortierung %>
<% local current_sorting = on_function("get_service_sorting") %>
<%# Checkboxen (ja/nein) %> <% for _, item in ipairs({ { key="use_olsrd_dns", label=luci.i18n.translate("DNS (Name resolution)")}, { key="use_olsrd_ntp", label=luci.i18n.translate("NTP (Time synchronization)")}}) do %>
<%# Die Voreinstellung ist jeweils: "aktiviert". %> <% local is_enabled = cursor:get("on-core", "settings", item.key) ~= "0" %> />
<% end %>
<%+footer%>