mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-07-10 06:34:28 +02:00
10 lines
401 B
Text
10 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"
|
|
}
|