mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 03:33:56 +08:00
update 2026-10-29 18:46:39
This commit is contained in:
1 parent
e2f86e09f4
commit
95f76f26d3
5034 files changed
+2043234
No files matched your search
@@ -0,0 +1,7 @@
|
||||
|
||||
config main
|
||||
option enable '0'
|
||||
option minute '10'
|
||||
option hour '6'
|
||||
option week '6'
|
||||
option once '0'
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
START=50
|
||||
|
||||
run_reboot()
|
||||
{
|
||||
if [ -e "/usr/bin/dorboot" ]; then
|
||||
chmod +x /usr/bin/dorboot
|
||||
/usr/bin/dorboot 2 &
|
||||
else
|
||||
logger "Timed Reboot: file missing, please reinstall.Settings don't work."
|
||||
sed -i '/dorboot/d' /etc/crontabs/root >/dev/null 2>&1 || exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
start()
|
||||
{
|
||||
run_reboot
|
||||
}
|
||||
|
||||
stop()
|
||||
{
|
||||
logger "Timed Reboot has stoped, but do nothing. if you need to clear settings, goto system -> timedreboot and make it disable."
|
||||
echo "Timed Reboot has stoped, but do nothing. if you need to clear settings, goto system -> timedreboot and make it disable." > /tmp/timedreboot.log
|
||||
}
|
||||
Reference in new issue
Block a user