summaryrefslogtreecommitdiffstats
path: root/openntpd-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'openntpd-model.lua')
-rw-r--r--openntpd-model.lua4
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