Commit graph

35 commits

Author SHA1 Message Date
Christian Hesse
363adaaa47 mode-button-scheduler: early exit with :exit 2026-07-17 11:48:22 +02:00
Christian Hesse
68dfe26198 mode-button: drop all global variables
With RouterOS 7.24 (actually 7.24beta1 I think) the mode, reset and wps
button scripts are run with limited policy. This causes global variables
not being available... So let's drop them here.

This is kind of inconvenient, but we can live with it. The second script
'mode-button-scheduler' is run from scheduler and does not suffer that
limitation.
2026-07-17 11:48:22 +02:00
Christian Hesse
198b088faa mode-button{,-scheduler}: store to and get count from scheduler's comment 2026-07-17 11:48:22 +02:00
Christian Hesse
0e5a30d946 mode-button: spilt the into two scripts 2026-07-17 10:22:25 +02:00
Christian Hesse
b3aa479515 mode-button: resolve nested conditions 2026-07-17 09:04:39 +02:00
Christian Hesse
b47896dfa3 bump required RouterOS version for all scripts 2026-06-25 14:09:12 +02:00
Christian Hesse
70ddc152de bump required RouterOS version for all scripts 2026-01-27 15:47:19 +01:00
Christian Hesse
20c904eea2 mode-button: use $ExitOnError 2026-01-21 16:03:33 +01:00
Christian Hesse
f1333087d2 mode-button: drop unused variable $ExitOK 2026-01-19 14:55:19 +01:00
Christian Hesse
2b8dfec2f7 bump required RouterOS version for all scripts 2026-01-12 10:00:30 +01:00
Christian Hesse
623f96d94a update copyright for 2026 2026-01-01 13:50:07 +01:00
Christian Hesse
314e68e4cd mode-button: :do ... on-error=... -> :onerror ... do=... 2025-05-21 22:12:25 +02:00
Christian Hesse
bc1c238158 mode-button: check for global config to be ready 2025-05-08 09:51:08 +02:00
Christian Hesse
63606ad25c mode-button: fail if global functions do not become ready 2025-05-08 09:51:07 +02:00
Christian Hesse
ff03f49724 mode-button: use :onerror for outer block 2025-05-08 09:51:07 +02:00
Christian Hesse
4bfb591fa0 bump required RouterOS version for all scripts 2025-02-07 17:44:41 +01:00
Christian Hesse
56e74268b0 mode-button: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
18fcecd211 mode-button: use short url rsc.eworm.de 2025-01-29 14:14:27 +01:00
Christian Hesse
9e3729c279 update copyright for 2025 2025-01-02 00:04:06 +01:00
Christian Hesse
1fe90a6e9a mode-button: $ModeButtonScheduler: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
e51191035b mode-button: $ModeButtonScheduler: explicitly name the variable 2024-12-09 11:49:50 +01:00
Christian Hesse
b7ce6aee71 mode-button: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
08ad4e5194 mode-button: do not act on disabled LED 2024-11-15 23:09:24 +01:00
Christian Hesse
53b6f7720e mode-button: catch runtime errors in executed code 2024-11-15 23:09:24 +01:00
Christian Hesse
1beda3aa7c mode-button: fix the caller parameter to $LogPrint
This is inside a function, so use just $0 here.
2024-11-15 23:01:22 +01: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
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
e3d55819ee mode-button: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse
4dd6bdef31 mode-button: drop main function, use :do with on-error 2024-03-12 15:27:15 +01:00
Christian Hesse
400516295e mode-button: move code into function 2024-03-04 21:40:34 +01:00
Christian Hesse
5d40075e44 mode-button: 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
4f04fa73fc mode-button: rename scheduler 2023-11-14 22:26:22 +01:00
Christian Hesse
351c7d31ff mode-button: add dollar sign in scheduler name 2023-06-22 22:45:32 +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