From 1089b7e7f9a6638c7783538f464916d16b3a6e87 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 14 Jan 2022 07:46:43 +0100 Subject: [PATCH] README: install correct global-config-overlay for RouterOS v6 --- INITIAL-COMMANDS.md | 9 ++++++++- README.d/04-import-scripts.avif | Bin 3810 -> 4599 bytes README.md | 9 +++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/INITIAL-COMMANDS.md b/INITIAL-COMMANDS.md index 843a3a0..9a8a129 100644 --- a/INITIAL-COMMANDS.md +++ b/INITIAL-COMMANDS.md @@ -6,7 +6,14 @@ Initial commands These command are inteneded for initial setup. If you are not aware of the procedure please follow [the long way in detail](README.md#the-long-way-in-detail). +One extra step is required if you run RouterOS v6: + + :global ScriptUpdatesUrlSuffix "\?h=routeros-v6"; + +Then run the complete base installation: + { + :global ScriptUpdatesUrlSuffix; / tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/R3.pem" dst-path="letsencrypt-R3.pem" as-value; :delay 1s; / certificate import file-name=letsencrypt-R3.pem passphrase=""; @@ -15,7 +22,7 @@ procedure please follow [the long way in detail](README.md#the-long-way-in-detai }; / file remove "letsencrypt-R3.pem"; :foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ - / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); + / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . $ScriptUpdatesUrlSuffix) output=user as-value]->"data"); }; / system script { run global-config; run global-functions; }; / system scheduler add name="global-scripts" start-time=startup on-event="/ system script { run global-config; run global-functions; }"; diff --git a/README.d/04-import-scripts.avif b/README.d/04-import-scripts.avif index c6a2a3c6a7f8d7623a83e759c460413977675c5d..c86a5c8ac6161a17d181165b83e0447f1178c67a 100644 GIT binary patch delta 4349 zcmVC9*thAR(aAGR+~ADghpU zz($X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s+qvj(Ia12 zx|iWrF_Kxe;e4Ig!`miG{4c8?!rrq2*U>&&@L-(G1i|_HXwl|z6oD{e>dFn7jD*#f zp$AH)6?+l$P)*pMuN_<9@ffhm8NzW!qM$WfpE&2~=VML_q29>;k;Q>*kYlCjDV{p6QphU<<6oxNecln-KG<*Kkw^&twSU zt9hI(VT;i6yn{{5E(DfHFtMzKV3DdULV@h&pRzmvf`M6oiG^C9w%|+ClQ{IPoXcX@ zVTwK1kt{`y3>w)S|HNK@By|S_;M4nl;ZzAgk}!!;yF|)ZI^ePcZms`S6JTvhTj}~z z6-hBJ7ll0LXA|Otgy7gI*Rrq{S0|v5YN>plZB)#*fo)sHj(Z|Ks z@-*RKn7=-+(D?vfCx$6r9(7g0w~1#eECOdS}p z_^vI~!X!Q>k=sju{I6;eAmEjFs;Djkr6_p?+AzCFS;345a<95t;9kHiA@t61m%ne8vU~BrfD|>LTt_ zDcu`qmEkAvS!6lC(^Mk1(m}J8s=uesq;_*K!ACO{Hwr$KZ3ko66)(_~L*7mbARgF6g-J_pbzE7(o5p^ee^s`FnhQ#WuYW?1 z65!h!%{(^OJ&~$TLo(ZS21+a^{U5hf3?Iq|i8V)xz1Vv3=$Lf{Y9qYlR?r(NF~32K zAr8mz3sZhX`J6n?<+{&7!Vol}vmqP-&GYbx@9+tK*jvV_GOQk>`bI-WO4M1Qx3crE zBtk73VmsR?*28p zO%=gU<;9KSiEOaGvZ)P84+#NBf+m|q3?&;Ng#Na+YhyaoW)@)lTQciO}K-SpF diff --git a/README.md b/README.md index d65ea0a..990aef9 100644 --- a/README.md +++ b/README.md @@ -82,9 +82,14 @@ All following commands will verify the server certificate. For validity the certificate's lifetime is checked with local time, so make sure the device's date and time is set correctly! +One extra step is required if you run RouterOS v6: + + :global ScriptUpdatesUrlSuffix "\?h=routeros-v6"; + Now let's download the main scripts and add them in configuration on the fly. - :foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); }; + :global ScriptUpdatesUrlSuffix; + :foreach Script in={ "global-config"; "global-config-overlay"; "global-functions" } do={ / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script . $ScriptUpdatesUrlSuffix) output=user as-value]->"data"); }; ![screenshot: import scripts](README.d/04-import-scripts.avif) @@ -116,7 +121,7 @@ to be updated automatically! RouterOS v6 will become deprecated at some time in the future, but to date it is still the default for these scripts (in branch `main`). This will change however, so if you want to stay with RouterOS v6 for some time add -these lines to your `global-config-overlay`: +these lines to your `global-config-overlay`, if missing: # Use branch routeros-v6 with RouterOS v6: :global ScriptUpdatesUrlSuffix "\?h=routeros-v6";