diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-05-07 17:37:37 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-05-07 17:37:37 +0000 |
commit | a5375d0530f4d7f9c622a1f062cb3424eed43107 (patch) | |
tree | ff849efd420132de6d1eb6e7d3be24c5f5b88252 | |
parent | 96270181df6e27542b7599e4d59e6eb0e43e23c3 (diff) | |
download | acf-shorewall-a5375d0530f4d7f9c622a1f062cb3424eed43107.tar.bz2 acf-shorewall-a5375d0530f4d7f9c622a1f062cb3424eed43107.tar.xz |
Rewrote getopts.getoptsfromfile function to handle more complicated config files and removed getopts.getoptsfromfile_onperline function
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1111 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | shorewall-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua index 9a660a6..023ceed 100644 --- a/shorewall-model.lua +++ b/shorewall-model.lua @@ -307,8 +307,8 @@ end function getlogfile () local logfile = {} - local logfilepath = getopts.getoptsfromfile(configfile,"LOGFILE") - local cmdaction = "grep Shorewall " .. logfilepath.LOGFILE + local logfilepath = getopts.getoptsfromfile(configfile,"","LOGFILE") or "" + local cmdaction = "grep Shorewall " .. logfilepath local f, error = io.popen(cmdaction ,r) local checkresult = f:read("*a") f:close() |