Update BackupAndUpdate.rsc

This commit is contained in:
deniska-666 2024-02-27 16:21:38 +01:00 committed by GitHub
parent b459aa499e
commit 23e31ae3fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -417,7 +417,7 @@ if ([:len [/system identity get name]] = 0 or [/system identity get name] = "Mik
## Wait until the upgrade is completed ## Wait until the upgrade is completed
:delay 5s; :delay 5s;
:log info "$SMP routerboard upgrade process was completed, going to reboot in a moment!"; :log info "$SMP routerboard upgrade process was completed, going to reboot in a moment!";
## Set scheduled task to send final report on the next boot, task will be deleted when is is done. (That is why you should keep original script name) ## Set scheduled task to send final report on the next boot, task will be deleted when it is done. (That is why you should keep original script name)
/system scheduler add name=BKPUPD-FINAL-REPORT-ON-NEXT-BOOT on-event=":delay 5s; /system scheduler remove BKPUPD-FINAL-REPORT-ON-NEXT-BOOT; :global buGlobalVarUpdateStep 3; :delay 10s; /system script run BackupAndUpdate;" start-time=startup interval=0; /system scheduler add name=BKPUPD-FINAL-REPORT-ON-NEXT-BOOT on-event=":delay 5s; /system scheduler remove BKPUPD-FINAL-REPORT-ON-NEXT-BOOT; :global buGlobalVarUpdateStep 3; :delay 10s; /system script run BackupAndUpdate;" start-time=startup interval=0;
## Reboot system to boot with new firmware ## Reboot system to boot with new firmware
/system reboot; /system reboot;