mirror of
https://github.com/laspavel/mikrotik-scripts.git
synced 2025-12-06 02:09:30 +00:00
8 lines
346 B
Text
8 lines
346 B
Text
|
|
:global RebootStatus;
|
||
|
|
:if ($RebootStatus != true) do={
|
||
|
|
: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;
|
||
|
|
:set RebootStatus true;
|
||
|
|
}
|