summaryrefslogtreecommitdiffstats
path: root/lbu-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-03 12:42:13 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-03 12:42:13 +0000
commit10aabcf615764a3ddfb3afdbda1e778fcc72b42b (patch)
treea783c83fb9053e461df1926c5fd6004c40224f98 /lbu-model.lua
parent2066d2d00fa2b39810d3c0fcaee629af8f5448fb (diff)
downloadacf-alpine-conf-10aabcf615764a3ddfb3afdbda1e778fcc72b42b.tar.bz2
acf-alpine-conf-10aabcf615764a3ddfb3afdbda1e778fcc72b42b.tar.xz
Modified format library. parse_configfile2, update_configfile2, get_section, and set_section became parse_ini_file, update_ini_file, get_ini_section, and set_ini_section. Updated all code that used these functions.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1539 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lbu-model.lua')
-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 "",