diff --git a/README.md b/README.md index 94ce4b0..1742489 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,18 @@ # Mikrotik Firmware Auto Updater -Script automatically updates router to the latest firmware. -When script finds new uptate it sends email notification that upgrade process has started, system backup and config file are in attachment. After firmware and routerboard got updated, it sends second email which tells that upgrade process has been finished. +The script automatically updates the router to the latest firmware. +When script finds new update it sends an email notification that upgrade process has started, system backup and config file are in the attachment. After firmware and routerboard got updated, it sends the second email which tells that upgrade process finished. ## How to use ##### 1. Create new script System -> Scripts [Add] -**Imprtant! ** Script name has to be **firmware-updater** -Put script source and **set your email address** to the variable *emailAddress* + +**Imprtant!** Script name has to be `firmware-updater` +Put script source and **set your email address** to the variable `emailAddress` ![](https://github.com/beeyev/Mikrotik-Firmware-Auto-Updater/raw/master/howto/script-name.png) ##### 2. Configure mail server Tools -> Email -Set your email server parameters. If you don't have one, i recommend to use [smtp2go.com](https://smtp2go.com "smtp2go.com") service, it allows to send thousand emails per month for free. +Set your email server parameters. If you don't have one, i recommend to use [smtp2go.com](https://smtp2go.com "smtp2go.com") service, it allows sending a thousand emails per month for free. ![](https://github.com/beeyev/Mikrotik-Firmware-Auto-Updater/raw/master/howto/email-config.png) ##### 3. Create scheduled task diff --git a/firmware-updater.rsc b/firmware-updater.rsc index c77ecd7..584cf9f 100644 --- a/firmware-updater.rsc +++ b/firmware-updater.rsc @@ -11,11 +11,11 @@ ## If true, passwords will be included in exported config :local sensetiveDataInConfig false; -## Update channel. Possible values: current, bugfix +## Update channel. Possible values: stable, long-term :local updateChannel "stable"; ## Install only patch versions of firmware updates. -## Means that new update will be installed only if major and minor version numbers are same as currently installed firmware. +## Means that new update will be installed only if major and minor version numbers are the same as currently installed firmware. ## Example: v6.43.6 => major.minor.PATCH :local onlyPatchUpdates false; ########## @@ -110,6 +110,7 @@ } } log info ("Checking for new firmware version. Current version is: $osVerCurrent"); + /system package update set channel=$updateChannel; /system package update check-for-updates; :delay 5s;