summaryrefslogtreecommitdiffstats
path: root/lbu-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lbu-model.lua')
-rw-r--r--lbu-model.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/lbu-model.lua b/lbu-model.lua
index da5e22c..6807e87 100644
--- a/lbu-model.lua
+++ b/lbu-model.lua
@@ -1,10 +1,12 @@
module (..., package.seeall)
+-- Load libraries
require("fs")
require("format")
require("getopts")
require("daemoncontrol")
+-- Set variables
local configfile = "/etc/lbu/lbu.conf"
-- ################################################################################
@@ -41,7 +43,6 @@ local function getLbuCommit(flag)
local err = {}
local ret = ""
local f = io.popen("/sbin/lbu commit " .. flag .. " 2>&1", "r")
--- local ret = f:read("*a")
for line in f:lines() do
ret = ret .. line .. "\n"
--Look for error messages in output
@@ -207,8 +208,6 @@ function getconfig ()
label="Password when encrypting",
})
----[[
-
-- Next section is to print errormessages when configs are wrong
if (configopts["LBU_MEDIA"] == "") or (configopts["LBU_MEDIA"] == nil) then
config.LBU_MEDIA.errtxt = "'Media' needs to be configured!"
@@ -219,7 +218,7 @@ function getconfig ()
for k,v in pairs(errors) do
config["errors"] = v
end
---]]
+
return config
end