summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-chillispot/luasrc/model/cbi/chillispot.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-23 23:17:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-23 23:17:45 +0000
commite3260d06bd3ace4becf0a4ac9d4ca3fd1b727a0d (patch)
tree120c7de99a18e1100d37546d07e4d5c1f0b8dda6 /applications/luci-chillispot/luasrc/model/cbi/chillispot.lua
parent0227e3cea1bbe3b9574d13b729129695aed017d3 (diff)
* luci/applications: add initial chillispot package (incomplete)
Diffstat (limited to 'applications/luci-chillispot/luasrc/model/cbi/chillispot.lua')
-rw-r--r--applications/luci-chillispot/luasrc/model/cbi/chillispot.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/applications/luci-chillispot/luasrc/model/cbi/chillispot.lua b/applications/luci-chillispot/luasrc/model/cbi/chillispot.lua
new file mode 100644
index 000000000..6c79d7456
--- /dev/null
+++ b/applications/luci-chillispot/luasrc/model/cbi/chillispot.lua
@@ -0,0 +1,36 @@
+--[[
+LuCI - Lua Configuration Interface
+
+Copyright 2008 Steven Barth <steven@midlink.org>
+Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+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
+
+$Id$
+]]--
+
+
+m = Map("chillispot")
+
+-- general
+s1 = m:section(TypedSection, "general")
+s1.anonymous = true
+
+s1:option( Flag, "debug" )
+s1:option( Value, "interval" )
+s1:option( Value, "pidfile" ).optional = true
+s1:option( Value, "statedir" ).optional = true
+
+-- remote config management
+s2 = m:section(TypedSection, "remoteconfig")
+s2.anonymous = true
+
+s2:option( Value, "confusername" )
+s2:option( Value, "confpassword" )
+
+
+return m