Compare commits

..

67 commits

Author SHA1 Message Date
Christian Hesse
7b07dd86de global-functions: $FetchUserAgentStr: add commit info in user agent string 2025-11-13 15:30:30 +01:00
Christian Hesse
07bc46f17d Merge branch 'rsc-eworm-de' into next 2025-11-13 15:00:30 +01:00
Christian Hesse
309da0a6c6 Merge branch 'contrib-template' into next 2025-11-13 15:00:30 +01:00
Christian Hesse
72ffd15888 doc/mod/scriptrunonce: get script from rsc.eworm.de 2025-11-13 15:00:30 +01:00
Christian Hesse
7e62c7d98f contrib/logo-color: drop width & height properties for images 2025-11-13 15:00:30 +01:00
Christian Hesse
e4dee910d6 contrib/template-wifi: split off from Makefile 2025-11-13 15:00:30 +01:00
Christian Hesse
59c9785da1 INITIAL-COMMANDS: install from rsc.eworm.de 2025-11-13 15:00:30 +01:00
Christian Hesse
393cea54ca contrib/logo-color: place screenshots below each other...
... not side by side.
2025-11-13 15:00:30 +01:00
Christian Hesse
8f7b6eba95 contrib/template-local: split off from Makefile 2025-11-13 15:00:30 +01:00
Christian Hesse
1558d6383a README: install from rsc.eworm.de 2025-11-13 15:00:30 +01:00
Christian Hesse
ef0af91fc5 general/style: make the blockquote darker 2025-11-13 15:00:30 +01:00
Christian Hesse
7744f1c93c contrib/template-capsman: split off from Makefile 2025-11-13 15:00:30 +01:00
Christian Hesse
62a434048c fw-addr-lists.d/allow: use rsc.eworm.de in the list 2025-11-13 15:00:30 +01:00
Christian Hesse
1157c91ddc Merge branch 'contrib-html-head-foot' into next 2025-11-13 15:00:30 +01:00
Christian Hesse
06044bb799 fw-addr-lists.d/{allow,block}: use short url rsc.eworm.de 2025-11-13 15:00:30 +01:00
Christian Hesse
6e41f0ae12 contrib/html: add a footer 2025-11-13 15:00:30 +01:00
Christian Hesse
5de42390a2 Makefile: clean up and add phony targets 2025-11-13 13:45:33 +01:00
Christian Hesse
23db61ff7c contrib/notification: add a head with eworm, QR code and caption 2025-11-13 13:45:33 +01:00
Christian Hesse
3021379c89 Merge branch 'contrib-html' into next 2025-11-13 13:45:33 +01:00
Christian Hesse
26e080cf6f contrib/logo-color: add a head with eworm, QR code and caption 2025-11-13 13:45:33 +01:00
Christian Hesse
2c50b41c06 contrib/Makefile: hide the hint on broken site 2025-11-13 13:45:33 +01:00
Christian Hesse
b314e07bcb contrib/html: add a head with eworm, QR code and caption 2025-11-13 13:45:33 +01:00
Christian Hesse
3240d27945 contrib/notification: hint on possibly broken site 2025-11-13 13:45:33 +01:00
Christian Hesse
25b5423239 contrib/logo-color: hint on possibly broken site 2025-11-13 13:45:33 +01:00
Christian Hesse
7a52d17b2a contrib/html: hide the hint on broken link 2025-11-13 13:45:33 +01:00
Christian Hesse
f614a92baf doc/mod/notification-telegram: hint on possibly broken link 2025-11-13 13:45:33 +01:00
Christian Hesse
52fabebd5c contrib: introduce Makefile...
... and update references in links.
2025-11-13 13:45:33 +01:00
Christian Hesse
0f55f1b703 contrib/logo-color: use relative reference in link
... without extra path elements.

This may break, depending on site.
2025-11-13 13:41:14 +01:00
Christian Hesse
0c7ec83d7c doc/mod/notification-telegram: use relative reference in link
This may break, depending on site.
2025-11-13 13:41:14 +01:00
Christian Hesse
f9bbe0e7af contrib/notification: format the values italic 2025-11-13 13:41:14 +01:00
Christian Hesse
9ac349e170 contrib/notification: update date format 2025-11-13 13:41:14 +01:00
Christian Hesse
c51c3e7a47 contrib/{logo-color,notification}: add navigation structure 2025-11-13 13:41:14 +01:00
Christian Hesse
3217ad1578 contrib/*: unify html code 2025-11-13 13:41:14 +01:00
Christian Hesse
6dbdc82e22 contrib/html: drop comma & ampersand from id/anchor 2025-11-13 13:41:09 +01:00
Christian Hesse
249706a01c contrib/html: properly handle anchors 2025-11-13 13:40:13 +01:00
Christian Hesse
bbc4bec966 contrib/html: link the logo with relative path 2025-11-13 13:40:13 +01:00
Christian Hesse
42568988cf contrib/html: increase default line height 2025-11-13 13:40:13 +01:00
Christian Hesse
db19c4cb43 contrib/html: add a margin on left and right...
... for windows in landscape (wider than high). Also make the
notification float right for landscape only.
2025-11-13 13:40:13 +01:00
Christian Hesse
bfa0148c9d contrib/html: include stylesheet via link 2025-11-13 13:40:11 +01:00
Christian Hesse
480e36bcf3 contrib/{logo-color,notification}: use a single style 2025-11-13 13:38:22 +01:00
Christian Hesse
128dfe0ff1 contrib/html: add empty lines...
... for easier rebasing.
2025-11-13 13:37:51 +01:00
Christian Hesse
fcc413ea26 README: add a sub-section for code hosting 2025-11-13 12:58:12 +01:00
Christian Hesse
9ab7d0a43b README: add the upstream url verbatim 2025-11-13 12:58:12 +01:00
Christian Hesse
5f0005baaf README: move the QR code 2025-11-13 12:58:12 +01:00
Christian Hesse
903c4bad41 Merge branch 'builtin-trust-store' into next 2025-11-13 12:58:12 +01:00
Christian Hesse
ae560a548c doc/mod/notification-matrix: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
c97ba60ca0 CERTIFICATES: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
be362c8da7 update-tunnelbroker: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
f7f97a458b telegram-chat: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
3e18e645d1 netwatch-dns: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
e29d9bc603 mod/notification-telegram: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
21c19a72a5 mod/notification-ntfy: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
3c695a6721 fw-addr-lists: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
468e2994c9 check-certificates: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
2d048d6e11 global-functions: $ScriptInstallUpdate: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
25e20dc0ef global-functions: $GetMacVendor: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
528edb7ea3 global-functions: $DownloadPackage: define certificate use 2025-11-13 12:58:12 +01:00
Christian Hesse
50d9106e2f global-functions: $CertificateAvailable: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-13 12:58:12 +01:00
Christian Hesse
f78d747226 INITIAL-COMMANDS: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-13 12:58:12 +01:00
Christian Hesse
e0e9dd9058 README: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-13 12:58:12 +01:00
Christian Hesse
d6c0d0918b global-functions: $ScriptInstallUpdate: extra actions on 'not found' only 2025-11-13 12:03:37 +01:00
Christian Hesse
8af4fbb462 global-functions: $ScriptInstallUpdate: either or...
... but not both.
2025-11-13 12:03:37 +01:00
Christian Hesse
bc21a14594 global-functions: $ScriptInstallUpdate: give hint on ignore
Fixes: https://github.com/eworm-de/routeros-scripts/issues/112
2025-11-13 12:03:37 +01:00
Christian Hesse
9967814c0d contrib/checksums: output to stdout...
... and let the Makefile redirect.
2025-11-13 12:03:37 +01:00
Christian Hesse
8cfc557ac9 global-functions: $CertificateDownload: drop unused function 2025-11-13 12:03:37 +01:00
Christian Hesse
d32b05c8a2 check-certificates: add missing semicolon 2025-11-13 12:03:37 +01:00
Christian Hesse
d100cac9ed README: add a line break before command 2025-11-13 12:03:37 +01:00
7 changed files with 27 additions and 9 deletions

View file

@ -9,7 +9,7 @@ MARKDOWN := $(wildcard *.md doc/*.md doc/mod/*.md)
HTML := $(MARKDOWN:.md=.html)
DATE ?= $(shell date --rfc-email)
VERSION ?= $(shell git symbolic-ref --short HEAD 2>/dev/null)/$(shell git rev-list --count HEAD 2>/dev/null)/$(shell git rev-parse --short HEAD 2>/dev/null)
VERSION ?= $(shell git symbolic-ref --short HEAD 2>/dev/null)/$(shell git rev-list --count HEAD 2>/dev/null)/$(shell git rev-parse --short=8 HEAD 2>/dev/null)
export DATE VERSION
.PHONY: all checksums docs rsc clean

View file

@ -3,6 +3,7 @@
set -e
RELTO="$(dirname "${1}")"
sed \
-e "s|__TITLE__|$(head -n1 "${1}")|" \
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
@ -10,11 +11,13 @@ sed \
-e "s|__EWORM__|$(realpath --relative-to="${RELTO}" general/eworm-meadow.avif)|" \
-e "s|__QR_CODE__|$(realpath --relative-to="${RELTO}" general/qr-code.png)|" \
< "${0}.d/head.html"
markdown -f toc,idanchor "${1}" | sed \
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
-e '/<h[1234] /s| id="\(.*\)">| id="\L\1">|' \
-e '/<h[1234] /s|-2c-||g' -e '/<h[1234] /s|--26-amp-3b-||g' \
-e '/The above link may be broken on code hosting sites/s|blockquote|blockquote style="display: none;"|'
sed \
-e "s|__DATE__|${DATE:-$(date --rfc-email)}|" \
-e "s|__VERSION__|${VERSION:-unknown}|" \

View file

@ -37,9 +37,9 @@ something that differentiates? Color it!</p>
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
logo and download it.</p>
<p><img src="logo-color.d/browser-01.avif" width=533 height=482 alt="Screenshot Browser 01"></p>
<p><img src="logo-color.d/browser-02.avif" width=533 height=482 alt="Screenshot Browser 02"></p>
<p><img src="logo-color.d/browser-03.avif" width=533 height=482 alt="Screenshot Browser 03"></p>
<p><img src="logo-color.d/browser-01.avif" alt="Screenshot Browser 01"></p>
<p><img src="logo-color.d/browser-02.avif" alt="Screenshot Browser 02"></p>
<p><img src="logo-color.d/browser-03.avif" alt="Screenshot Browser 03"></p>
<p>(This example is with
<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a>. The workflow

View file

@ -2,7 +2,10 @@
set -e
sed -e '/\/interface\/wifi\//d' -e '/\/interface\/wireless\//d' -e 's|%TEMPL%|.capsman|' \
sed \
-e '/\/interface\/wifi\//d' \
-e '/\/interface\/wireless\//d' \
-e 's|%TEMPL%|.capsman|' \
-e '/^# NOT \/caps-man\/ #$/,/^# NOT \/caps-man\/ #$/d' \
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
< "${1}"

View file

@ -2,7 +2,10 @@
set -e
sed -e '/\/caps-man\//d' -e '/\/interface\/wifi\//d' -e 's|%TEMPL%|.local|' \
sed \
-e '/\/caps-man\//d' \
-e '/\/interface\/wifi\//d' \
-e 's|%TEMPL%|.local|' \
-e '/^# NOT \/interface\/wireless\/ #$/,/^# NOT \/interface\/wireless\/ #$/d' \
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
< "${1}"

View file

@ -2,7 +2,10 @@
set -e
sed -e '/\/caps-man\//d' -e '/\/interface\/wireless\//d' -e 's|%TEMPL%|.wifi|' \
sed \
-e '/\/caps-man\//d' \
-e '/\/interface\/wireless\//d' \
-e 's|%TEMPL%|.wifi|' \
-e '/^# NOT \/interface\/wifi\/ #$/,/^# NOT \/interface\/wifi\/ #$/d' \
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
< "${1}"

View file

@ -539,10 +539,16 @@
:set FetchUserAgentStr do={
:local Caller [ :tostr $1 ];
:global CommitId;
:global CommitInfo;
:global IfThenElse;
:local Resource [ /system/resource/get ];
:return ("User-Agent: Mikrotik/" . $Resource->"version" . " " . \
$Resource->"architecture-name" . " " . $Caller . "/Fetch (https://rsc.eworm.de/)");
:return ("User-Agent: Mikrotik/" . $Resource->"version" . " " . $Resource->"architecture-name" . \
" " . $Caller . "/Fetch (https://rsc.eworm.de/" . [ $IfThenElse ($CommitId != "unknown") \
("; " . $CommitInfo . "/" . [ :pick $CommitId 0 8 ]) ] . ")");
}
# check for existence of file, optionally with type