summaryrefslogtreecommitdiffhomepage
path: root/libs/sgi-luci/root/usr/lib/lucittpd
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-11-30 13:19:45 +0000
committerSteven Barth <steven@midlink.org>2008-11-30 13:19:45 +0000
commitb33943a6e8596c1ddfc1b771a995d3cf21e81cd6 (patch)
tree6f67cdea044e708a599a06712491b5c60db6f954 /libs/sgi-luci/root/usr/lib/lucittpd
parenta7e7c31f8c659b55c1adb0863a8f2f66d3452d2b (diff)
Merge LuCIttpd
Diffstat (limited to 'libs/sgi-luci/root/usr/lib/lucittpd')
-rw-r--r--libs/sgi-luci/root/usr/lib/lucittpd/plugins/luci-webui.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/sgi-luci/root/usr/lib/lucittpd/plugins/luci-webui.lua b/libs/sgi-luci/root/usr/lib/lucittpd/plugins/luci-webui.lua
new file mode 100644
index 000000000..f237b8538
--- /dev/null
+++ b/libs/sgi-luci/root/usr/lib/lucittpd/plugins/luci-webui.lua
@@ -0,0 +1,16 @@
+-- Initialize LuCI
+function initialize()
+ pcall(function()
+ require "luci.dispatcher"
+ require "luci.uvl"
+ require "luci.cbi"
+ require "luci.template"
+ require "luci.json"
+ end)
+end
+
+-- Register luci
+function register()
+ local lucihnd = require "luci.ttpd.handler.luci"
+ httpd.server:get_default_vhost():set_handler("/luci", lucihnd.Luci())
+end \ No newline at end of file