mirror of
				https://github.com/eworm-de/routeros-scripts.git
				synced 2024-05-11 05:55:19 +00:00 
			
		
		
		
	backup-partition: get the actual real name...
... to prevent confusion after restore.
This commit is contained in:
		| @@ -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={ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user