mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-06-24 23:18:38 +02:00
Minor doc update
This commit is contained in:
parent
422d5f5c0e
commit
f78b1a159b
1 changed files with 7 additions and 4 deletions
|
@ -2,12 +2,15 @@
|
|||
# requirement $adminEmailAddress or configure it below
|
||||
# :local adminEmailAddress "admin@example.com"
|
||||
|
||||
# if you run this script at "startup",
|
||||
# the following indicates the time for the internet to go "up"
|
||||
:delay 60s
|
||||
|
||||
/system package update
|
||||
|
||||
# check-for-updates once
|
||||
# :delay 10s
|
||||
:local verionStatus
|
||||
check-for-updates once
|
||||
|
||||
:local verionStatus
|
||||
:set $versionStatus [get status]
|
||||
# alternative way to get the above info
|
||||
# :set $versionStatus ([print as-value]->"status")
|
||||
|
@ -15,9 +18,9 @@
|
|||
:put $versionStatus
|
||||
:put $adminEmailAddress
|
||||
|
||||
:if ( $versionStatus = "New version is available" ) do={
|
||||
# alternative method
|
||||
# :if ( [get installed-version] != [get latest-version] ) do={
|
||||
:if ( $versionStatus = "New version is available" ) do={
|
||||
/tool e-mail send to="$adminEmailAddress" \
|
||||
subject="[Mikrotik] Software Up date Available" \
|
||||
body="A new update is available for your MikroTik device"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue