mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-18 15:09:33 +00:00
make GeneratePSK a global function
This commit is contained in:
parent
9c3f3b9f20
commit
7b4bef1a1e
4 changed files with 59 additions and 55 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
:global "daily-psk-match-comment";
|
||||
|
||||
:global "GeneratePSK";
|
||||
|
||||
# check mail server
|
||||
:if ([ / tool netwatch get [ find where comment=[ / tool e-mail get address ] ] status ] != "up" ) do={
|
||||
:error "Mail server is not up.";
|
||||
|
|
@ -16,9 +18,8 @@
|
|||
:error "Time is not yet synchronized from ntp.";
|
||||
}
|
||||
|
||||
:local GeneratePSK [ :parse [ / system script get GeneratePSK source ] ];
|
||||
|
||||
:local newpsk [ $GeneratePSK ];
|
||||
:local date [ / system clock get date ];
|
||||
:local newpsk [ $GeneratePSK $date ];
|
||||
|
||||
:local sendmail 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue