Commit graph

25 commits

Author SHA1 Message Date
Christian Hesse
b19c448f78 daily-psk: check for global config to be ready 2025-05-08 09:51:07 +02:00
Christian Hesse
8418d58ff0 daily-psk: fail if global functions do not become ready 2025-05-08 09:51:07 +02:00
Christian Hesse
55e07a8a42 daily-psk: use :onerror for outer block 2025-05-06 09:54:24 +02:00
Christian Hesse
96fa76f07d daily-psk.template: use short url rsc.eworm.de 2025-01-29 14:14:26 +01:00
Christian Hesse
9e3729c279 update copyright for 2025 2025-01-02 00:04:06 +01:00
Christian Hesse
f9a6916827 daily-psk.capsman: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
a017f24224 daily-psk: drop workaround for old RouterOS 2024-07-25 09:15:41 +02:00
Christian Hesse
6fbafe76ba bump RouterOS requirement for all scripts and modules...
... now that global-functions requires RouterOS 7.14 anyway.
2024-07-16 13:50:22 +02:00
Christian Hesse
787ae4440c daily-psk: quote ssid and passphrase 2024-05-15 15:54:12 +02:00
Christian Hesse
169c1ab6e1 daily-psk: decrease indention in notification 2024-05-15 15:52:28 +02:00
Christian Hesse
ca7a592dfd daily-psk: adopt syntax changes
RouterOS 7.15beta8 came with this change:

*) wifi - show inherited properties with "print" command (replaces "actual-configuration") and added "print config" for showing only configured values;

While the old code is bad syntax with RouterOS 7.15, the new code is
valid for older RouterOS, but produces different (and more or less
unexpected) results. 🥴

Let's use the new code, and add a check on the RouterOS version.
With old RouterOS this now sends the notification even if the interface
is disabled.
2024-05-15 15:52:28 +02:00
Christian Hesse
009674b5bc bump RouterOS requirement for all scripts and modules...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00
Christian Hesse
4ab8dbd774 daily-psk: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse
f79206a9b8 daily-psk: drop main function, use :do with on-error 2024-03-12 15:27:15 +01:00
Christian Hesse
1e8918fdaa global-functions: $ScriptLock: do not exit from global function 2024-03-12 15:27:15 +01:00
Christian Hesse
31da6b8bd5 daily-psk: move code into function 2024-03-04 17:04:45 +01:00
Christian Hesse
3f8d680fe8 daily-psk.capsman: use :jobname to get script name 2024-01-30 00:52:21 +01:00
Christian Hesse
9a73fc526f update copyright for 2024 2024-01-01 15:25:25 +01:00
Christian Hesse
0e83d2e317 daily-psk: use named array 2023-10-17 14:05:03 +02:00
Christian Hesse
40f2953dde daily-psk: lock the script 2023-06-13 08:58:32 +02:00
Christian Hesse
9069f71ee6 daily-psk: use $ParseDate 2023-05-10 20:02:44 +02:00
Christian Hesse
e7927e0eee daily-psk: explicitly cast to num 2023-05-10 18:10:31 +02:00
Christian Hesse
d586a5ab19 daily-psk: simplify calculation
Use a named array, and drop the loop...
2023-05-10 18:10:31 +02:00
Christian Hesse
944b2f5864 daily-psk: use $FormatLine 2023-04-24 22:26:26 +02:00
Christian Hesse
a832fd04ef rename scripts and add file extension ".rsc"
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00