mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
backup-partition: use plain variable for name
This commit is contained in:
parent
ed00c0877f
commit
77ef9b2c95
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue