2 LuCI - Lua Configuration Interface
4 Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 m = Map("luci", translate("Custom Commands"),
17 translate("This page allows you to configure custom shell commands which can be easily invoked from the web interface."))
19 s = m:section(TypedSection, "command", "")
20 s.template = "cbi/tblsection"
25 s:option(Value, "name", translate("Description"),
26 translate("A short textual description of the configured command"))
28 s:option(Value, "command", translate("Command"),
29 translate("Command line to execute"))
31 s:option(Flag, "param", translate("Custom arguments"),
32 translate("Allow the user to provide additional command line arguments"))
34 s:option(Flag, "public", translate("Public access"),
35 translate("Allow executing the command and downloading its output without prior authentication"))