summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lbu-model.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbu-model.lua b/lbu-model.lua
index bda4b8c..69eacfc 100644
--- a/lbu-model.lua
+++ b/lbu-model.lua
@@ -171,7 +171,7 @@ end
local was_mounted
local mnt
local function mount()
- local configopts = format.parse_configfile2(fs.read_file(configfile), "") or {}
+ local configopts = format.parse_ini_file(fs.read_file(configfile), "") or {}
mnt = "/media/"..configopts.LBU_MEDIA
local f = io.popen("grep "..mnt.." /proc/mounts")
local cmdresult = f:read("*a")
@@ -232,9 +232,9 @@ function getconfig (configcontents)
local config = {}
local configopts = {}
if configcontents then
- configopts = format.parse_configfile2(configcontents, "") or {}
+ configopts = format.parse_ini_file(configcontents, "") or {}
elseif (fs.is_file(configfile)) then
- configopts = format.parse_configfile2(fs.read_file(configfile), "") or {}
+ configopts = format.parse_ini_file(fs.read_file(configfile), "") or {}
end
config["LBU_MEDIA"] = cfe({
value=configopts.LBU_MEDIA or "",