aboutsummaryrefslogtreecommitdiffstats
path: root/backup-partition.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-02-02 10:53:31 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-02-02 12:53:45 +0100
commit7b30af90b707e6b0fe8629722bd17605e1e09b93 (patch)
tree1d7d1c577b23fa03a3e9d7ba7cf708628a03a666 /backup-partition.rsc
parent0694d9af3ec5d7fdee7aad25ec132c4e3f9b2faf (diff)
backup-partition: get the actual real name...
... to prevent confusion after restore.
Diffstat (limited to 'backup-partition.rsc')
-rw-r--r--backup-partition.rsc8
1 files changed, 4 insertions, 4 deletions
diff --git a/backup-partition.rsc b/backup-partition.rsc
index 5d131c9..0eaf166 100644
--- a/backup-partition.rsc
+++ b/backup-partition.rsc
@@ -31,11 +31,11 @@ $ScriptLock $0;
:local FallbackTo [ /partitions/get $ActiveRunning fallback-to ];
:do {
- /system/scheduler/add start-time=startup \
- name=("running-from-" . $FallbackTo) \
- on-event=(":log warning \"Running from partition '" . $FallbackTo . "'!");
+ /system/scheduler/add start-time=startup name="running-from-backup-partition" \
+ on-event=(":log warning (\"Running from partition '\" . " . \
+ "[ /partitions/get [ find where running ] name ] . \"'!\")");
/partitions/save-config-to $FallbackTo;
- /system/scheduler/remove ("running-from-" . $FallbackTo);
+ /system/scheduler/remove "running-from-backup-partition";
$LogPrintExit2 info $0 ("Saved configuration to partition '" . \
$FallbackTo . "'.") false;
} on-error={