diff --git a/luci-app-control-timewol/luasrc/model/cbi/timewol.lua b/luci-app-control-timewol/luasrc/model/cbi/timewol.lua index 7d3ff07..c951313 100644 --- a/luci-app-control-timewol/luasrc/model/cbi/timewol.lua +++ b/luci-app-control-timewol/luasrc/model/cbi/timewol.lua @@ -11,7 +11,10 @@ else state_msg = "" .. translate("没有运行") .. "" end -t = Map("timewol", translate("定时网络设备唤醒"), translate("利用“计划任务”来定时唤醒局域网中的设备的工具。时间点设置可参考中的说明。") .. button .. "

" .. translate("运行状态").. " : " .. state_msg .. "
") +t = Map("timewol", translate("定时网络设备唤醒"), translate("利用“计划任务”来定时唤醒局域网中的设备的工具。计划任务设置可参考") .. button .. "

" .. +translate("运行状态").. " : " .. state_msg .. "
" +) e = t:section(TypedSection, "basic", translate("")) e.anonymous = true diff --git a/luci-app-rebootschedule/root/etc/config/rebootschedule b/luci-app-rebootschedule/root/etc/config/rebootschedule index 27ae3bf..7046262 100644 --- a/luci-app-rebootschedule/root/etc/config/rebootschedule +++ b/luci-app-rebootschedule/root/etc/config/rebootschedule @@ -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 '*'