From: Jo-Philipp Wich Date: Fri, 5 Jul 2019 10:38:01 +0000 (+0200) Subject: luci-base: add sys.init.reload() and sys.init.restart() actions X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7a9900c8734f19e34af5bd4a4106566d4ca3ca1;p=oweals%2Fluci.git luci-base: add sys.init.reload() and sys.init.restart() actions Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/sys.lua b/modules/luci-base/luasrc/sys.lua index cd186c94d..d0df27572 100644 --- a/modules/luci-base/luasrc/sys.lua +++ b/modules/luci-base/luasrc/sys.lua @@ -659,3 +659,11 @@ end function init.stop(name) return (init_action("stop", name) == 0) end + +function init.restart(name) + return (init_action("restart", name) == 0) +end + +function init.reload(name) + return (init_action("reload", name) == 0) +end