Compare commits

..

22 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
8 changed files with 8 additions and 23 deletions

View file

@ -45,6 +45,9 @@ Run the complete base installation:
};
:put "Loading configuration and functions...";
/system/script { run global-config; run global-functions; };
:put "Scheduling to load configuration and functions...";
/system/scheduler/remove [ find where name="global-scripts" ];
/system/scheduler/add name="global-scripts" start-time=startup on-event="/system/script { run global-config; run global-functions; }";
:if ([ :len [ /certificate/find where fingerprint=$CertFingerprint ] ] > 0) do={
:put "Renaming certificate by its common-name...";
:global CertificateNameByCN;

View file

@ -12,7 +12,7 @@ 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)
export DATE VERSION
.PHONY: all checksums commitinfo docs rsc clean
.PHONY: all checksums docs rsc clean
all: checksums docs rsc
@ -21,9 +21,6 @@ checksums: checksums.json
checksums.json: contrib/checksums.sh $(ALL_RSC)
contrib/checksums.sh > $@
commitinfo:
contrib/commitinfo.sh
docs: $(HTML)
%.html: %.md general/style.css contrib/html.sh contrib/html.sh.d/head.html

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -129,12 +129,12 @@ Now let's download the main scripts and add them in configuration on the fly.
![screenshot: import scripts](README.d/04-import-scripts.avif)
And finally run configuration and functions. This will also add the
scheduler for loading at system startup automatically.
And finally load configuration and functions and add the scheduler.
/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; }";
![screenshot: run and schedule scripts](README.d/05-run-scripts.avif)
![screenshot: run and schedule scripts](README.d/05-run-and-schedule-scripts.avif)
> 💡️ **Hint**: You see complaints regarding syntax errors? Most likely the
> RouterOS on your device is too old. Check for updates!

View file

@ -7,7 +7,6 @@ HTML := $(wildcard *.html)
all: docs
docs: $(HTML)
sed -i \
-e '/href=/s|\.md|\.html|' \
sed -i -e '/href=/s|\.md|\.html|' \
-e '/blockquote/s|/\*! display \*/|display: none;|' \
$(HTML)

View file

@ -1,6 +0,0 @@
#!/bin/sh
sed -i \
-e "/^:global CommitId/c :global CommitId \"${COMMITID:-unknown}\";" \
-e "/^:global CommitInfo/c :global CommitInfo \"${COMMITINFO:-unknown}\";" \
global-functions.rsc

View file

@ -1900,14 +1900,6 @@
}
}
:if ([ :len [ /system/scheduler/find where name="global-scripts" ] ] = 0) do={
/system/scheduler/add name="global-scripts" start-time=startup;
}
:local OnEvent "/system/script { run global-config; run global-functions; }";
:if ([ /system/scheduler/get "global-scripts" on-event ] != $OnEvent) do={
/system/scheduler/set "global-scripts" on-event=$OnEvent;
}
# Log success
:local Resource [ /system/resource/get ];
$LogPrintOnce info $ScriptName ("Loaded on " . $Resource->"board-name" . \