From d65c73156afcabd8e8b99d213134f365beafda83 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 7 May 2008 17:37:37 +0000 Subject: 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 --- openntpd-model.lua | 4 ++-- 1 file 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 -- cgit v1.2.3