summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/host
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-05-01 11:28:34 +0000
committerSteven Barth <steven@midlink.org>2009-05-01 11:28:34 +0000
commit67fbe1b33c2195cc763309ba7467100f56676467 (patch)
tree9d2f649d045e0da1e2df38d4ec896251861bb3a8 /libs/httpd/host
parent78d8ad784bdc06d07e2fcac409f2052b1d13d5f3 (diff)
Remove Luasocket - obsoleted by nixio
Remove old luasocket based LuCI Httpd - obsoleted by lucittpd Remove lpeg - not in use Rewrite luci-splashd using nixio
Diffstat (limited to 'libs/httpd/host')
-rwxr-xr-xlibs/httpd/host/runluci48
1 files changed, 0 insertions, 48 deletions
diff --git a/libs/httpd/host/runluci b/libs/httpd/host/runluci
deleted file mode 100755
index bc56f15c1..000000000
--- a/libs/httpd/host/runluci
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env lua
-require("luci.httpd")
-require("luci.httpd.server")
-require("luci.httpd.handler.file")
-require("luci.httpd.handler.luci")
-
-SYSROOT = arg[1]
-DOCROOT = SYSROOT .. arg[2]
-PORT = 8080
-
-collectgarbage("setpause", 150)
-
-serversocket = luci.httpd.Socket("0.0.0.0", PORT)
-
-server = luci.httpd.server.Server()
-vhost = luci.httpd.server.VHost()
-
-server:set_default_vhost(vhost)
-
-pcall(function()
- require "uci"
- require "luci.model.uci".cursor = function(config, save)
- return uci.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
- end
-
- local x = require "luci.uvl".UVL.__init__
- require "luci.uvl".UVL.__init__ = function(self, schemedir)
- x(self, schemedir or SYSROOT .. "/lib/uci/schema")
- end
-end)
-
-require("luci.sys")
-luci.sys.user.checkpasswd = function() return true end
-
-
-filehandler = luci.httpd.handler.file.Simple(DOCROOT)
-vhost:set_default_handler(filehandler)
-
-lucihandler = luci.httpd.handler.luci.Luci()
-vhost:set_handler("/luci", lucihandler)
-
-io.stderr:write("Starting LuCI HTTPD on port " .. PORT .. "...\n")
-io.stderr:write("Point your browser to http://localhost:" .. PORT .. "/luci\n")
-
---daemon = luci.httpd.Daemon()
---daemon.debug = true
-luci.httpd.register(serversocket, server:create_daemon_handlers())
-luci.httpd.run()