From: Steven Barth Date: Fri, 11 Apr 2008 18:26:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 0.8.0~1144 X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=a09102416324658e85ee0652a7e1acce3089cf65;hp=0268c3491f5b14ffdba097e6a983ffc7c53daa13 --- diff --git a/core/contrib/ffluci b/core/contrib/ffluci new file mode 100755 index 0000000000..e090d560cd --- /dev/null +++ b/core/contrib/ffluci @@ -0,0 +1,5 @@ +#!/usr/bin/haserl --shell=luac +package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path +package.cpath = "/usr/lib/lua/?.so;" .. package.cpath +require("ffluci").dispatch() + diff --git a/core/contrib/ffluci-upload b/core/contrib/ffluci-upload new file mode 100755 index 0000000000..0128c2dd73 --- /dev/null +++ b/core/contrib/ffluci-upload @@ -0,0 +1,4 @@ +#!/usr/bin/haserl --shell=luac --upload-limit=6144 +-- This is a bit hacky: remove -upload from SCRIPT_NAME +ENV.SCRIPT_NAME = ENV.SCRIPT_NAME:sub(1, #ENV.SCRIPT_NAME - 7) +dofile("ffluci") \ No newline at end of file diff --git a/core/contrib/index.cgi b/core/contrib/index.cgi new file mode 100755 index 0000000000..c9c98b0b29 --- /dev/null +++ b/core/contrib/index.cgi @@ -0,0 +1,3 @@ +#!/usr/bin/haserl --shell=luac +print("Status: 302 Found") +print("Location: ffluci/admin\n") diff --git a/core/contrib/index.html b/core/contrib/index.html new file mode 100644 index 0000000000..58387a5fec --- /dev/null +++ b/core/contrib/index.html @@ -0,0 +1,10 @@ + + + + + + + +FFLuCI - Freifunk Lua Configuration Interface + + \ No newline at end of file diff --git a/core/ffluci b/core/ffluci deleted file mode 100755 index e090d560cd..0000000000 --- a/core/ffluci +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/haserl --shell=luac -package.path = "/usr/lib/lua/?.lua;/usr/lib/lua/?/init.lua;" .. package.path -package.cpath = "/usr/lib/lua/?.so;" .. package.cpath -require("ffluci").dispatch() - diff --git a/core/ffluci-upload b/core/ffluci-upload deleted file mode 100755 index 0128c2dd73..0000000000 --- a/core/ffluci-upload +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/haserl --shell=luac --upload-limit=6144 --- This is a bit hacky: remove -upload from SCRIPT_NAME -ENV.SCRIPT_NAME = ENV.SCRIPT_NAME:sub(1, #ENV.SCRIPT_NAME - 7) -dofile("ffluci") \ No newline at end of file diff --git a/core/index.cgi b/core/index.cgi deleted file mode 100755 index c9c98b0b29..0000000000 --- a/core/index.cgi +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/haserl --shell=luac -print("Status: 302 Found") -print("Location: ffluci/admin\n") diff --git a/core/index.html b/core/index.html deleted file mode 100644 index 58387a5fec..0000000000 --- a/core/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - -FFLuCI - Freifunk Lua Configuration Interface - - \ No newline at end of file