Christian Hesse
f2576cf558
packages-update: give warning on lock in device-mode
...
RouterOS 7.17beta2 introduced some extra security measures, including
some to prevent downgrade attacks for the installation. Detect early
and exit with message and error.
https://help.mikrotik.com/docs/display/ROS/Device-mode
2024-09-30 16:23:50 +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
64bc9f73f7
packages-update: run backups before package download
...
This reduces memory pressure, especially on device with very limited RAM
like mAP with its 64 MB.
2024-07-04 15:31:43 +02:00
Christian Hesse
7212d8bd23
packages-update: do not reboot when scheduled
2024-03-27 22:17:06 +01:00
Christian Hesse
44fc69e82d
packages-update: drop RouterOS version check...
...
... and allow all updates again. This requires RouterOS 7.13.
2024-03-12 21:39:38 +01:00
Christian Hesse
8444e5f270
packages-update: switch to $LogPrint
2024-03-12 20:37:57 +01:00
Christian Hesse
3fcdd395fe
packages-update: support passing backup failure
2024-03-12 15:27:15 +01:00
Christian Hesse
ffa31c7ad7
packages-update: increate log severity on canceled non-interactive update
2024-03-12 15:27:15 +01:00
Christian Hesse
1012d9fc51
packages-update: 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
ec90695e8f
packages-update: do not exit with error
2024-03-12 15:27:15 +01:00
Christian Hesse
492edb4263
packages-update: move code into function
2024-03-04 21:40:34 +01:00
Christian Hesse
64e53a7d32
packages-update: schedule reboot at pre-calculated time
2024-01-31 23:16:41 +01:00
Christian Hesse
461f7b6e76
packages-update: move output and logging to local function...
...
... and pass script name for clean logging.
2024-01-31 23:10:15 +01:00
Christian Hesse
237dcd7261
packages-update: prepare message and mention time zone
2024-01-31 23:10:15 +01:00
Christian Hesse
322466fd00
packages-update: use :jobname to get script name
2024-01-30 00:52:21 +01:00
Christian Hesse
62f33d7b19
packages-update: support deferred reboot on auto-update
...
Closes #56
2024-01-30 00:02:08 +01:00
Christian Hesse
98f26989f5
packages-update: schedule from local function
2024-01-30 00:02:08 +01:00
Christian Hesse
9a73fc526f
update copyright for 2024
2024-01-01 15:25:25 +01:00
Christian Hesse
11daef75f0
packages-update: refuse automatic update to RouterOS 7.13
...
... as migration to wireless or wifi package has to be done. Please
update manually by running:
/system/package/update/install
2023-11-21 13:14:51 +01:00
Christian Hesse
f7c72b6ed9
packages-update: rename scheduler
2023-11-14 22:27:15 +01:00
Christian Hesse
8b8bc7cf2d
packages-update: match on word boundary
2023-09-13 16:08:59 +02:00
Christian Hesse
66813d83a0
packages-update: drop order from message
2023-09-13 16:08:59 +02:00
Christian Hesse
c3f9ad1df7
packages-update: implement backup script order
2023-09-13 01:14:27 +02:00
Christian Hesse
4a67155d05
packages-update: rename scheduler to match function 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