![]() □ The script for automatically updating the firmware of a MikroTik device when the installed RouterOS version is changed was discussed in this article. Now the firmware version of the device (bootloader) is always the same as the RouterOS version, and I don’t have to spend time manually updating the firmware. :if ( != ) do=" policy=reboot,read,write,policy start-time=startup Menu - Script Data Name: AutoUpgradeFirmware This script should run as soon as the device boots, so we create the script in the task scheduler, not in the script store. ✏️ Note: check that after the specified pause time before the script starts, the Internet will really have time to connect or increase the delay before the script runs. ![]() If the versions do not match, the MikroTik device downloads the updated version of the RouterBOARD firmware and reboots the device after installing the new firmware version. The used RouterBOARD firmware version ( current-firmware) and the RouterBOARD version offered for upgrade ( upgrade-firmware) are compared. The script runs 3 minutes later (180 seconds delay) after booting the MikroTik device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |