Minor fixes

This commit is contained in:
gSpot
2025-01-23 01:51:17 +03:00
parent e0e13d4962
commit c20703d5be
7 changed files with 22 additions and 22 deletions

View File

@@ -15,13 +15,13 @@ local InternetDetector = require("internet-detector.main")
local function help()
return string.format(
"Usage: %s service <UCI instance> | nodaemon <UCI instance> | debug <UCI instance> | stop | status | inet-status | uipoll | --help",
"Usage: %s daemon <UCI instance> | nodaemon <UCI instance> | debug <UCI instance> | stop | status | inet-status | uipoll | --help",
arg[0]
)
end
local helpArgs = { ["-h"] = true, ["--help"] = true, help = true }
if arg[1] == "service" then
if arg[1] == "daemon" then
if arg[2] then
if InternetDetector:setServiceConfig(arg[2]) then
InternetDetector:daemon()