mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
luci-app-autoreboot: code alignment
This commit is contained in:
parent
66880ea2a4
commit
71ead8d8bf
@ -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
|
||||
|
@ -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
|
||||
|
@ -18,8 +18,3 @@ msgstr "小时"
|
||||
|
||||
msgid "Minute"
|
||||
msgstr "分钟"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user