laspavel.mikrotik-scripts/RebootStatus.rsc

9 lines
376 B
Text
Raw Permalink Normal View History

2022-10-31 16:41:53 +02:00
# https://www.urlencoder.org/
:global ReBootStatus;
:if ($ReBootStatus != true) do={
2021-01-06 13:25:08 +02:00
:local DeviceName [/system identity get name];
:local MessageText ("<b>RebootStatus $DeviceName:</b> I reboot now!");
:local SendTelegramMessage [:parse [/system script get SendTelegram source]];
$SendTelegramMessage MessageText=$MessageText;
2022-10-31 16:41:53 +02:00
:set ReBootStatus true;
2021-01-06 13:25:08 +02:00
}