Commit graph

24 commits

Author SHA1 Message Date
Christian Hesse
99a8148d17 daily-psk: update initialization of empty array
Having the parenthesis here is important for valid syntax!
2022-07-13 11:32:23 +02:00
Christian Hesse
cb20b8c380 daily-psk: properly check for disabled state
The property 'disabled' can be undefined, which evaluates to
enabled - but is not matched by 'disabled=no'.
2022-07-11 10:41:51 +02:00
Christian Hesse
71053fec40 daily-psk: RouterOS v7 path syntax 2022-05-11 13:48:27 +02:00
Christian Hesse
95e9820718 update copyright for 2022 2022-01-01 21:38:15 +01:00
Christian Hesse
fe9754c693 daily-psk: pass origin to $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
354aedd98e daily-psk: use $SendNotification2 2021-04-28 13:58:37 +02:00
Christian Hesse
f46db91845 global: give script or function name in log messages 2021-02-24 21:51:54 +01:00
Christian Hesse
d5afc79eed global: drop script 'global-wait'
All scripts wait for the global functions on their own now.
2021-02-18 21:45:38 +01:00
Christian Hesse
e7c2a7745a daily-psk: drop support for attaching QR-Code
The notification contains the link. Should be sufficient, no?
2021-02-16 16:01:36 +01:00
Christian Hesse
547fbc630a update copyright for 2021 2021-01-01 21:33:52 +01:00
Christian Hesse
ca4e25283f global-functions: clickable links in telegram notifications 2020-11-26 23:04:05 +01:00
Christian Hesse
1367a59c27 daily-psk: add symbol in notification 2020-09-18 13:08:29 +02:00
Christian Hesse
49737af6d1 extend magic pattern with "by RouterOS"
This matches the string included in export.
2020-09-18 11:00:27 +02:00
Christian Hesse
ff5cdc3019 [ ... print count-only ...] -> [ :len [ ... find ... ] ]
Using 'print count-only' always prints a number to terminal, even if the
value is evaluated in a condition or assigned to a variable. This can be
quite annoying. Behavior will not chance (SUP-25503), so replacing the
code...
2020-08-26 09:29:52 +02:00
Christian Hesse
71ad56aacc explicitly name the license
Copyright (C) 2013-2020 Christian Hesse <mail@eworm.de>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

https://www.gnu.org/licenses/#GPL
https://www.gnu.org/licenses/gpl.html
https://www.gnu.org/licenses/gpl.md
2020-06-19 22:17:42 +02:00
Christian Hesse
7597911672 daily-psk: wait to be fully connected 2020-05-27 00:21:30 +02:00
Christian Hesse
e949e527f6 add doc/daily-psk.md 2020-03-27 22:12:49 +01:00
Christian Hesse
3127800496 daily-psk: use $LogPrintExit 2020-03-05 08:26:05 +01:00
Christian Hesse
afb9839073 update copyright for 2020 2020-01-01 17:00:39 +01:00
Christian Hesse
2252058202 daily-psk: add hint about device specific rule
I tricked myself several times... If a more device specific (or just
earlier matching) rule exists the daily PSK is not applied!
2019-06-13 08:14:03 +02:00
Christian Hesse
7f96e5c966 global-functions: add $WaitForFile, wait for file on fetch
The fetch command is asynchronous, the file is not guaranteed to be
available when command terminates.

I opened an issue at Mikrotik support (Ticket#2019041722004999),
their answer:

> You should perform a check in a loop.
> :delay until file exist
>
> That can happen also with any configuration not just files.

So add a function to wait for a file with given name.

I have not seen this with other configuration, though.
2019-04-30 16:52:53 +02:00
Christian Hesse
b93d4d40bc drop deprecated mode= for fetch 2019-04-09 18:01:44 +02:00
Christian Hesse
228ec7106b daily-psk: use the template system 2019-04-03 22:51:15 +02:00
Michael Gisbers
cf09542635 daily-psk: prepare for caps-man
Signed-off-by: Christian Hesse <mail@eworm.de>
2019-03-06 16:12:03 +01:00
Renamed from daily-psk (Browse further)