luci-app-autoreboot: code alignment

This commit is contained in:
Beginner-Go 2022-06-04 16:13:25 +00:00
parent 66880ea2a4
commit 71ead8d8bf
3 changed files with 3 additions and 8 deletions

View File

@ -1,4 +1,4 @@
module("luci.controller.autoreboot",package.seeall)
module("luci.controller.autoreboot", package.seeall)
function index()
if not nixio.fs.access("/etc/config/autoreboot") then

View File

@ -8,7 +8,7 @@ s = m:section(TypedSection, "login")
s.addremove = false
s.anonymous = true
enable = s:option(Flag,"enable" ,translate("Enable"))
enable = s:option(Flag, "enable", translate("Enable"))
enable.rmempty = false
enable.default = 0
@ -34,7 +34,7 @@ pass.rmempty = false
local e = luci.http.formvalue("cbi.apply")
if e then
io.popen("/etc/init.d/autoreboot restart")
io.popen("/etc/init.d/autoreboot restart")
end
return m

View File

@ -18,8 +18,3 @@ msgstr "小时"
msgid "Minute"
msgstr "分钟"