summaryrefslogtreecommitdiffhomepage
path: root/libs/sgi-haserl/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sgi-haserl/htdocs')
-rwxr-xr-xlibs/sgi-haserl/htdocs/cgi-bin/index.cgi3
-rwxr-xr-xlibs/sgi-haserl/htdocs/cgi-bin/luci4
-rwxr-xr-xlibs/sgi-haserl/htdocs/cgi-bin/luci-upload4
-rw-r--r--libs/sgi-haserl/htdocs/index.html10
4 files changed, 21 insertions, 0 deletions
diff --git a/libs/sgi-haserl/htdocs/cgi-bin/index.cgi b/libs/sgi-haserl/htdocs/cgi-bin/index.cgi
new file mode 100755
index 000000000..aae8591c6
--- /dev/null
+++ b/libs/sgi-haserl/htdocs/cgi-bin/index.cgi
@@ -0,0 +1,3 @@
+#!/usr/bin/haserl --shell=luac
+print("Status: 302 Found")
+print("Location: luci\n")
diff --git a/libs/sgi-haserl/htdocs/cgi-bin/luci b/libs/sgi-haserl/htdocs/cgi-bin/luci
new file mode 100755
index 000000000..fd8e5941a
--- /dev/null
+++ b/libs/sgi-haserl/htdocs/cgi-bin/luci
@@ -0,0 +1,4 @@
+#!/usr/bin/haserl --shell=luac
+require("luci.sgi.haserl")
+luci.dispatcher.indexcache = "/tmp/.luciindex"
+luci.sgi.haserl.run() \ No newline at end of file
diff --git a/libs/sgi-haserl/htdocs/cgi-bin/luci-upload b/libs/sgi-haserl/htdocs/cgi-bin/luci-upload
new file mode 100755
index 000000000..371967ce9
--- /dev/null
+++ b/libs/sgi-haserl/htdocs/cgi-bin/luci-upload
@@ -0,0 +1,4 @@
+#!/usr/bin/haserl --shell=luac --upload-limit=16384
+-- This is a bit hacky: remove -upload from SCRIPT_NAME
+ENV.SCRIPT_NAME = ENV.SCRIPT_NAME:sub(1, #ENV.SCRIPT_NAME - 7)
+dofile("luci") \ No newline at end of file
diff --git a/libs/sgi-haserl/htdocs/index.html b/libs/sgi-haserl/htdocs/index.html
new file mode 100644
index 000000000..39ba558df
--- /dev/null
+++ b/libs/sgi-haserl/htdocs/index.html
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="refresh" content="0; URL=/cgi-bin/index.cgi" />
+</head>
+<body style="background-color: black">
+<a style="color: white; text-decoration: none" href="/cgi-bin/index.cgi">LuCI - Lua Configuration Interface</a>
+</body>
+</html> \ No newline at end of file