From b33943a6e8596c1ddfc1b771a995d3cf21e81cd6 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 30 Nov 2008 13:19:45 +0000 Subject: Merge LuCIttpd --- .../root/usr/lib/lucittpd/plugins/luci-webui.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libs/sgi-luci/root/usr/lib/lucittpd/plugins/luci-webui.lua (limited to 'libs/sgi-luci/root/usr/lib/lucittpd/plugins') 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 0000000000..f237b85388 --- /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 -- cgit v1.2.3