Compare commits

..

61 commits

Author SHA1 Message Date
Christian Hesse
b833fc3698 contrib/template-wifi: split off from Makefile 2025-11-12 18:22:35 +01:00
Christian Hesse
a585dbc537 contrib/template-local: split off from Makefile 2025-11-12 18:21:39 +01:00
Christian Hesse
1e0ccedac7 contrib/template-capsman: split off from Makefile 2025-11-12 18:18:36 +01:00
Christian Hesse
5e86843d31 contrib/html: add a footer 2025-11-12 18:07:59 +01:00
Christian Hesse
40147dc1cd doc/mod/scriptrunonce: get script from rsc.eworm.de 2025-11-12 11:54:32 +01:00
Christian Hesse
9fd127eb6d INITIAL-COMMANDS: install from rsc.eworm.de 2025-11-12 11:54:32 +01:00
Christian Hesse
cf7d7f9508 README: install from rsc.eworm.de 2025-11-12 11:54:32 +01:00
Christian Hesse
45f446e688 contrib/Makefile: hide the hint on broken site 2025-11-12 11:54:32 +01:00
Christian Hesse
7b6c18eef3 contrib/notification: hint on possibly broken site 2025-11-12 11:54:32 +01:00
Christian Hesse
d3da397b87 contrib/logo-color: hint on possibly broken site 2025-11-12 11:54:32 +01:00
Christian Hesse
e9cd631be5 contrib/html: hide the hint on broken link 2025-11-12 11:54:32 +01:00
Christian Hesse
d98b9624d3 doc/mod/notification-telegram: hint on possibly broken link 2025-11-12 11:54:32 +01:00
Christian Hesse
58e41d641c README: add a sub-section for code hosting 2025-11-12 11:54:32 +01:00
Christian Hesse
5acdcabcc1 README: add the upstream url verbatim 2025-11-12 11:54:32 +01:00
Christian Hesse
ee62084c56 general/style: make the blockquote darker 2025-11-12 11:54:32 +01:00
Christian Hesse
7b3ad6f86e contrib/notification: add a head with eworm, QR code and caption 2025-11-12 11:54:32 +01:00
Christian Hesse
ed42bef06c contrib/logo-color: add a head with eworm, QR code and caption 2025-11-12 11:54:32 +01:00
Christian Hesse
df3d1f2f54 contrib/html: add a head with eworm, QR code and caption 2025-11-12 11:54:32 +01:00
Christian Hesse
237e04c25d README: move the QR code 2025-11-11 23:59:56 +01:00
Christian Hesse
4b92dcd3ed Merge branch 'builtin-trust-store' into next 2025-11-11 23:59:56 +01:00
Christian Hesse
3fa0690b9d README: add a line break before command 2025-11-11 23:59:56 +01:00
Christian Hesse
41c349a04c doc/mod/notification-matrix: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
254a89886d fw-addr-lists.d/allow: use rsc.eworm.de in the list 2025-11-11 23:59:56 +01:00
Christian Hesse
5f1b17a644 CERTIFICATES: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
a8528bc02d fw-addr-lists.d/{allow,block}: use short url rsc.eworm.de 2025-11-11 23:59:56 +01:00
Christian Hesse
c273770f7d update-tunnelbroker: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
edb8ad9a2e Makefile: clean up and add phony targets 2025-11-11 23:59:56 +01:00
Christian Hesse
31a2bbbb4c telegram-chat: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
c0e4f411c2 global-functions: $ScriptInstallUpdate: extra actions on 'not found' only 2025-11-11 23:59:56 +01:00
Christian Hesse
6c2bf181fc netwatch-dns: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
e3cf008ec1 global-functions: $ScriptInstallUpdate: either or...
... but not both.
2025-11-11 23:59:56 +01:00
Christian Hesse
0cbc8dca74 mod/notification-telegram: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
1bdca31985 global-functions: $ScriptInstallUpdate: give hint on ignore
Fixes: https://github.com/eworm-de/routeros-scripts/issues/112
2025-11-11 23:59:56 +01:00
Christian Hesse
24aadcf02d mod/notification-ntfy: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
40a581e013 contrib/checksums.sh: output to stdout...
... and let the Makefile redirect.
2025-11-11 23:59:56 +01:00
Christian Hesse
85f3e1a5f4 fw-addr-lists: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
df970f3366 Merge branch 'contrib' into next 2025-11-11 23:59:56 +01:00
Christian Hesse
45ab635ba1 check-certificates: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
4ec1833ef8 contrib: introduce Makefile...
... and update references in links.
2025-11-11 23:59:56 +01:00
Christian Hesse
ee77f7d72d global-functions: $ScriptInstallUpdate: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
2e808141b8 contrib/logo-color: place screenshots below each other...
... not side by side.
2025-11-11 23:59:56 +01:00
Christian Hesse
ab29a3fb82 global-functions: $GetMacVendor: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
06d1bab537 contrib/logo-color: use relative reference in link
... without extra path elements.

This may break, depending on site.
2025-11-11 23:59:56 +01:00
Christian Hesse
e69605ac4d global-functions: $DownloadPackage: define certificate use 2025-11-11 23:59:56 +01:00
Christian Hesse
954c8e299f doc/mod/notification-telegram: use relative reference in link
This may break, depending on site.
2025-11-11 23:59:56 +01:00
Christian Hesse
959f0a257f global-functions: $CertificateAvailable: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-11 23:59:56 +01:00
Christian Hesse
a7de16b584 contrib/notification: format the values italic 2025-11-11 23:59:56 +01:00
Christian Hesse
7f2cdf67cb INITIAL-COMMANDS: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-11 23:59:56 +01:00
Christian Hesse
4b5333d971 contrib/notification: update date format 2025-11-11 23:59:56 +01:00
Christian Hesse
67551e58d8 README: support new builtin-trust-store...
... which was introduced with RouterOS 7.21beta7.
2025-11-11 23:59:56 +01:00
Christian Hesse
ee6c66327a contrib/{logo-color,notification}: add navigation structure 2025-11-11 23:59:56 +01:00
Christian Hesse
0a37b6c008 contrib/*: unify html code 2025-11-11 23:59:56 +01:00
Christian Hesse
668f29776b contrib/html.sh: drop comma & ampersand from id/anchor 2025-11-11 23:01:34 +01:00
Christian Hesse
c0e8ee8c9b contrib/html.sh: properly handle anchors 2025-11-11 23:01:34 +01:00
Christian Hesse
1b914274fd contrib/html.sh: link the logo with relative path 2025-11-11 23:01:34 +01:00
Christian Hesse
98343cf8fb contrib/html.sh: increase default line height 2025-11-11 23:01:34 +01:00
Christian Hesse
2aad3add26 contrib/html.sh: 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-11 23:01:34 +01:00
Christian Hesse
60a1b98866 contrib/html.sh: include stylesheet via link 2025-11-11 23:01:34 +01:00
Christian Hesse
7560020aff contrib/{logo-color,notification}: use a single style 2025-11-11 23:01:34 +01:00
Christian Hesse
ee06798d8b global-functions: $CertificateDownload: drop unused function 2025-11-10 12:16:22 +01:00
Christian Hesse
3776a028f8 check-certificates: add missing semicolon 2025-11-10 12:15:08 +01:00
7 changed files with 9 additions and 27 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=8 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 HEAD 2>/dev/null)
export DATE VERSION
.PHONY: all checksums docs rsc clean

View file

@ -3,7 +3,6 @@
set -e
RELTO="$(dirname "${1}")"
sed \
-e "s|__TITLE__|$(head -n1 "${1}")|" \
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
@ -11,13 +10,11 @@ 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" 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><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>(This example is with
<a href="https://www.mozilla.org/de/firefox/new/">Firefox</a>. The workflow

View file

@ -2,10 +2,7 @@
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,10 +2,7 @@
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,10 +2,7 @@
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,16 +539,10 @@
: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/" . [ $IfThenElse ($CommitId != "unknown") \
("; " . $CommitInfo . "/" . [ :pick $CommitId 0 8 ]) ] . ")");
:return ("User-Agent: Mikrotik/" . $Resource->"version" . " " . \
$Resource->"architecture-name" . " " . $Caller . "/Fetch (https://rsc.eworm.de/)");
}
# check for existence of file, optionally with type