aboutsummaryrefslogtreecommitdiffstats
path: root/packages-update.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-06-22 14:28:17 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-06-22 22:45:32 +0200
commit4a67155d059cc816a5b83443104eaf79a8cfe20c (patch)
tree04ca4b3cea6632dbc4118507d6dc1dfef2284781 /packages-update.rsc
parent64698253983f4ea608b31eb46fb4ac11fc9a156c (diff)
packages-update: rename scheduler to match function name
Diffstat (limited to 'packages-update.rsc')
-rw-r--r--packages-update.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages-update.rsc b/packages-update.rsc
index 5162103..74b1822 100644
--- a/packages-update.rsc
+++ b/packages-update.rsc
@@ -86,8 +86,8 @@ $ScriptLock $0;
$RandomDelay 3600;
/system/reboot;
}
- /system/scheduler/add name="reboot-for-update" start-time=03:00:00 interval=1d \
- on-event=("/system/scheduler/remove reboot-for-update; " . \
+ /system/scheduler/add name="\$RebootForUpdate" start-time=03:00:00 interval=1d \
+ on-event=("/system/scheduler/remove \"\\\$RebootForUpdate\"; " . \
":global RebootForUpdate; \$RebootForUpdate;");
$LogPrintExit2 info $0 ("Scheduled reboot for update between 03:00 and 04:00.") true;
}