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 | d65c73156afcabd8e8b99d213134f365beafda83 (patch) | |
tree | 7681c0d6352088944ba70725654c5719e6a4ddbe /openntpd-model.lua | |
parent | 30e65244c4a093c804f111c137b4769d2861f308 (diff) | |
download | acf-openntpd-d65c73156afcabd8e8b99d213134f365beafda83.tar.bz2 acf-openntpd-d65c73156afcabd8e8b99d213134f365beafda83.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/openntpd/trunk@1111 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openntpd-model.lua')
-rw-r--r-- | openntpd-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openntpd-model.lua b/openntpd-model.lua index ca4abc0..3869ee9 100644 --- a/openntpd-model.lua +++ b/openntpd-model.lua @@ -239,7 +239,7 @@ end function getconfig () local path = configfile local config = {} - local configopts = getopts.getoptsfromfile(confdfile) + local configopts = getopts.getoptsfromfile(confdfile, "") configopts["variables"] = config_content(path) @@ -249,7 +249,7 @@ function getconfig () value = "No", type="checkbox", }) - if (getopts.getoptsfromfile(confdfile,"NTPD_OPTS", "-s")) then + if (getopts.getoptsfromfile(confdfile, "", "NTPD_OPTS", true, "-s")) then config.setstimeonstartup.value = "Yes" config.setstimeonstartup.checked = "Yes" end |