mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-07-10 14:44:31 +02:00
11 lines
401 B
Text
11 lines
401 B
Text
|
# Using: https://wiki.mikrotik.com/wiki/Manual:Upgrading_RouterOS#RouterOS_auto-upgrade
|
||
|
:global emailAddress "noreply@example.com";
|
||
|
|
||
|
/system package update;
|
||
|
check-for-updates once;
|
||
|
:delay 10s;
|
||
|
:if ( [get status] = "New version is available") do={
|
||
|
/tool e-mail send to="$emailAddress" subject="[Mikrotik] Software Up\
|
||
|
date Available" body="A new update is available for your MikroTik device"
|
||
|
}
|