summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-02-26 09:48:03 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-02-26 09:48:03 -0500
commit5cc18dc0df7eb13c537ad46ba5f3411e0d396be4 (patch)
treec8bcf618c251048e67869b8f50d2af1d7e9421b4 /init.lua
parentf785313415cc0c2e18c931f837facb8a0ce3cb12 (diff)
downloadnodeMCU_rf_source_lmx2487-5cc18dc0df7eb13c537ad46ba5f3411e0d396be4.tar.gz
nodeMCU_rf_source_lmx2487-5cc18dc0df7eb13c537ad46ba5f3411e0d396be4.zip
bare minimum init files
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua17
1 files changed, 3 insertions, 14 deletions
diff --git a/init.lua b/init.lua
index 9f1ca8b..c3287b8 100644
--- a/init.lua
+++ b/init.lua
@@ -1,8 +1,5 @@
-dofile("local_config.lua")
-dofile("config.lua")
-
-- Compile server code and remove original .lua files.
--- This only happens the first time afer the .lua files are uploaded.
+-- This only happens the first time after the .lua files are uploaded.
local compileAndRemoveIfNeeded = function(f)
if file.open(f) then
file.close()
@@ -14,16 +11,8 @@ local compileAndRemoveIfNeeded = function(f)
end
local serverFiles = {
- 'httpserver.lua',
- 'httpserver-b64decode.lua',
- 'httpserver-basicauth.lua',
- 'httpserver-conf.lua',
- 'httpserver-connection.lua',
- 'httpserver-error.lua',
- 'httpserver-header.lua',
- 'httpserver-request.lua',
- 'httpserver-static.lua',
- 'telnetserver.lua'
+ 'microwire.lua',
+ 'lmx2487lib.lua'
}
for i, f in ipairs(serverFiles) do compileAndRemoveIfNeeded(f) end