<%# LuCI - Lua Configuration Interface Copyright 2012 Jo-Philipp Wich 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%> <% local uci = require "luci.model.uci".cursor() local commands = { } uci:foreach("luci", "command", function(s) commands[#commands+1] = s end) %>
">

<%:Custom Commands%>

<% local _, command; for _, command in ipairs(commands) do %>

<%=pcdata(command.name)%>

<%:Command:%> <%=pcdata(command.command)%>

<% if command.param == "1" then %>

<%:Arguments:%>

<% end %>
<% if command.public == "1" then %> <% end %>
<% end %>

<%+footer%>