mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
finally remove old scripts
This commit is contained in:
parent
b864db1e38
commit
dc7fc0d385
9 changed files with 5 additions and 38 deletions
|
@ -1,6 +0,0 @@
|
|||
#!rsc by RouterOS
|
||||
# RouterOS script: early-errors
|
||||
|
||||
:global LogPrintExit2;
|
||||
|
||||
$LogPrintExit2 warning "early-errors" ("This script has been replaced. Please migrate to 'log-forward'.") true;
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
# Make sure all configuration properties are up to date and this
|
||||
# value is in sync with value in script 'global-functions'!
|
||||
:global GlobalConfigVersion 60;
|
||||
:global GlobalConfigVersion 61;
|
||||
|
||||
# This is used for DNS and backup file.
|
||||
:global Domain "example.com";
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# Make sure all configuration properties are up to date and this
|
||||
# value is in sync with value in script 'global-functions'!
|
||||
# Comment or remove to disable news and change notifications.
|
||||
:global GlobalConfigVersion 60;
|
||||
:global GlobalConfigVersion 61;
|
||||
|
||||
# Copy configuration from global-config here and modify it.
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
58="Added a cleanup script for 'hotspot-to-wpa' to purge old access list entries.";
|
||||
59="Updating CAP with 'check-routeros-update' is now possible with opt-in.";
|
||||
60="Implemented a pre-down hook in 'netwatch-notify' that fires at two thirds of failed checks.";
|
||||
61="Finally removed old scripts.";
|
||||
};
|
||||
|
||||
# Migration steps to be applied on script updates
|
||||
|
@ -72,4 +73,5 @@
|
|||
47="/ certificate remove [ find where fingerprint=\"731d3d9cfaa061487a1d71445a42f67df0afca2a6c2d2f98ff7b3ce112b1f568\" or fingerprint=\"25847d668eb4f04fdd40b12b6b0740c567da7d024308eb6c2c96fe41d9de218d\" ];";
|
||||
52=":global CertificateDownload; :if ([ :len [ / certificate find where fingerprint=\"67add1166b020ae61b8f5fc96813c04c2aa589960796865572a3c7e737613dfd\" or fingerprint=\"96bcec06264976f37460779acf28c5a7cfe8a3c0aae11a8ffcee05c0bddf08c6\" ] ] < 2) do={ \$CertificateDownload \"R3\"; }; / certificate remove [ find where fingerprint=\"0687260331a72403d909f105e69bcf0d32e1bd2493ffc6d9206d11bcd6770739\" ];";
|
||||
54=":global ScriptInstallUpdate; :global TelegramTokenId; :global TelegramChatId; :if ([ :len \$TelegramTokenId ] > 0 && [ :len \$TelegramChatId ] > 0) do={ \$ScriptInstallUpdate global-functions.d/notification-telegram; }";
|
||||
61="/ system script remove [ find where name~\"^(early-errors|global-wait|mode-button-(event|scheduler)|script-updates)\\\$\" source~\"^#!rsc by RouterOS\\n\" ];";
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# https://git.eworm.de/cgit/routeros-scripts/about/
|
||||
|
||||
# expected configuration version
|
||||
:global ExpectedConfigVersion 60;
|
||||
:global ExpectedConfigVersion 61;
|
||||
|
||||
# global variables not to be changed by user
|
||||
:global GlobalFunctionsReady false;
|
||||
|
|
11
global-wait
11
global-wait
|
@ -1,11 +0,0 @@
|
|||
#!rsc by RouterOS
|
||||
# RouterOS script: global-wait
|
||||
|
||||
:global GlobalFunctionsReady;
|
||||
:while ($GlobalFunctionsReady != true) do={
|
||||
:delay 500ms;
|
||||
}
|
||||
|
||||
:global LogPrintExit2;
|
||||
|
||||
$LogPrintExit2 warning "global-wait" ("This script is now useless, please remove it from configuration.") true;
|
|
@ -1,6 +0,0 @@
|
|||
#!rsc by RouterOS
|
||||
# RouterOS script: mode-button-event
|
||||
|
||||
:global LogPrintExit2;
|
||||
|
||||
$LogPrintExit2 warning "mode-button-event" ("This script's functionality has been merged into 'mode-button'.") true;
|
|
@ -1,6 +0,0 @@
|
|||
#!rsc by RouterOS
|
||||
# RouterOS script: mode-button-scheduler
|
||||
|
||||
:global LogPrintExit2;
|
||||
|
||||
$LogPrintExit2 warning "mode-button-scheduler" ("This script's functionality has been merged into 'mode-button'.") true;
|
|
@ -1,6 +0,0 @@
|
|||
#!rsc by RouterOS
|
||||
# RouterOS script: script-updates
|
||||
|
||||
:global LogPrintExit2;
|
||||
|
||||
$LogPrintExit2 warning "script-updates" ("This script has been replaced by function '\$ScriptInstallUpdate'.") true;
|
Loading…
Reference in a new issue