aboutsummaryrefslogtreecommitdiffstats
path: root/backup-partition.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-02-02 10:40:59 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-02-02 10:40:59 +0100
commit77ef9b2c9593b88b11bc3f2616b8ac9d1f8f2d4c (patch)
tree9cc9aadf5a02fa9b488c245adc0858d185ef3b1c /backup-partition.rsc
parented00c0877f18c7e551ffa6082c62262081f8e81a (diff)
backup-partition: use plain variable for name
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 e67a001..075ca95 100644
--- a/backup-partition.rsc
+++ b/backup-partition.rsc
@@ -28,13 +28,13 @@ $ScriptLock $0;
$LogPrintExit2 error $0 ("Device is not running from active partition.") true;
}
-:local ActiveRunningVar [ /partitions/get $ActiveRunning ];
+:local FallbackTo [ /partitions/get $ActiveRunning fallback-to ];
:do {
- /partitions/save-config-to ($ActiveRunningVar->"fallback-to");
+ /partitions/save-config-to $FallbackTo;
$LogPrintExit2 info $0 ("Saved configuration to partition '" . \
- ($ActiveRunningVar->"fallback-to") . "'.") false;
+ $FallbackTo . "'.") false;
} on-error={
$LogPrintExit2 error $0 ("Failed saving configuration to partition '" . \
- ($ActiveRunningVar->"fallback-to") . "'!") true;
+ $FallbackTo . "'!") true;
}