summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2007-11-30 07:07:52 +0000
committerMika Havela <mika.havela@gmail.com>2007-11-30 07:07:52 +0000
commit4914226cda432c9d865b83dd116ecce005182e26 (patch)
tree8bf543ee9fae09fc59eaab09245a460a9529d323
parent6d1f0376411f9b22ce33ba0679f3bdbec9e850c0 (diff)
downloadacf-openvpn-4914226cda432c9d865b83dd116ecce005182e26.tar.bz2
acf-openvpn-4914226cda432c9d865b83dd116ecce005182e26.tar.xz
Fixed a typo/debug error
git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@393 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--openvpn-model.lua33
1 files changed, 0 insertions, 33 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua
index 3ff389e..700bb48 100644
--- a/openvpn-model.lua
+++ b/openvpn-model.lua
@@ -232,25 +232,7 @@ function get_logfile( self, path)
return ( { name = config.log, value = logfilecontent } )
end
---[[
-function get_filecontent (self, name)
--- local path = baseurl .. name
- file_content = nil
- local available_files = get_conflist()
- for k,v in pairs(available_files) do
- if ( available_files[k].name == name ) then
- local file = io.open( name )
- local file_result = file:read("*a") or "unknown"
- file:close()
- local filedetails = file_info(name)
- file_content = cfe{name=name, value=file_result, filedetails=filedetails}
- end
- end
- return available_files
-end
---]]
function get_filecontent( self, path)
- local path = "VoIp.conf"
local configresult = {}
config = config_content ( path )
local file = io.open( config.name )
@@ -258,22 +240,7 @@ function get_filecontent( self, path)
file:close()
local filedetails = file_info( config.name )
file_content = cfe{name=config.name, value=file_result, filedetails=filedetails}
-
---[[
-
-
- local filecontent = fs.read_file ( config.name )
- if not (logfilecontent) then
- logfilecontent = "File is empty or missing!"
- end
- local filedetails = file_info(path)
- file_content = {name=name, value=file_result, filedetails=filedetails, err=err}
-
- config["filecontent"]=filecontent
- configresult = config
---]]
return file_content
--- return ( { name = config.name, shortname = path, value = logfilecontent } )
end