diff options
author | Steven Barth <steven@midlink.org> | 2008-06-15 16:02:47 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-15 16:02:47 +0000 |
commit | 3455ee6d8d9eb3c0ee8459adb586a800dadaf737 (patch) | |
tree | 2cc4ac0f6df70f8df1e9afd0faccca1ec9f3299f /libs/sgi-haserl/htdocs/cgi-bin | |
parent | 647bc44868000e97763600dbea176307cd4a3ef5 (diff) |
* Added support for htdocs module directory
Diffstat (limited to 'libs/sgi-haserl/htdocs/cgi-bin')
-rwxr-xr-x | libs/sgi-haserl/htdocs/cgi-bin/index.cgi | 3 | ||||
-rwxr-xr-x | libs/sgi-haserl/htdocs/cgi-bin/luci | 4 | ||||
-rwxr-xr-x | libs/sgi-haserl/htdocs/cgi-bin/luci-upload | 4 |
3 files changed, 11 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 0000000000..aae8591c6a --- /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 0000000000..fd8e5941a5 --- /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 0000000000..371967ce98 --- /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 |