up timewol

This commit is contained in:
sirpdboy 2021-07-13 09:15:13 +08:00
parent 8c8253532a
commit f996b70dd3
2 changed files with 11 additions and 2 deletions

View File

@ -11,7 +11,10 @@ else
state_msg = "<b><font color=\"red\">" .. translate("没有运行") .. "</font></b>"
end
t = Map("timewol", translate("定时网络设备唤醒"), translate("<b>利用“计划任务”来定时唤醒局域网中的设备的工具。时间点设置可参考<input class=\"cbi-button cbi-button-apply\" type=\"submit\" value=\" "..translate("“计划重启”").." \" onclick=\"window.open('http://'+window.location.hostname+'/cgi-bin/luci/admin/system/rebootschedule')\"/>中的说明。</b>") .. button .. "<br/><br/>" .. translate("运行状态").. " : " .. state_msg .. "<br />")
t = Map("timewol", translate("定时网络设备唤醒"), translate("<b>利用“计划任务”来定时唤醒局域网中的设备的工具。计划任务设置可参考<input class=\"cbi-button cbi-button-apply\" type=\"submit\" value=\" "..
translate("“查看/验证”").." \" onclick=\"window.open('https://tool.lu/crontab/')\"/></b>") .. button .. "<br/><br/>" ..
translate("运行状态").. " : " .. state_msg .. "<br />"
)
e = t:section(TypedSection, "basic", translate(""))
e.anonymous = true

View File

@ -1,4 +1,3 @@
config crontab
option week '*'
option hour '*/4'
@ -17,6 +16,13 @@ config crontab
option command 'sleep 5 && touch /etc/banner && reboot'
option enable '0'
config crontab
option enable '0'
option week '*'
option hour '23'
option minute '59'
option command 'poweroff'
config crontab
option month '*'
option day '*'