From eaf0ecff18ee063286ad423469241ca0eb2e4c6c Mon Sep 17 00:00:00 2001 From: PS Date: Sun, 1 Feb 2026 12:06:46 +0100 Subject: version 0.2.0.0 --- src/lib/source/system/other/acpid-srv/producer-for | 1 + src/lib/source/system/other/acpid-srv/run | 10 ++++++++++ src/lib/source/system/other/acpid-srv/type | 1 + .../other/dmesg-srv/dependencies.d/mount-proc | 0 src/lib/source/system/other/dmesg-srv/producer-for | 1 + src/lib/source/system/other/dmesg-srv/run | 10 ++++++++++ src/lib/source/system/other/dmesg-srv/type | 1 + .../kmod-static-nodes/dependencies.d/mount-run | 0 src/lib/source/system/other/kmod-static-nodes/type | 1 + src/lib/source/system/other/kmod-static-nodes/up | 9 +++++++++ src/lib/source/system/other/local/down | 8 ++++++++ src/lib/source/system/other/local/type | 1 + src/lib/source/system/other/local/up | 10 ++++++++++ src/lib/source/system/other/modules/type | 1 + src/lib/source/system/other/modules/up | 21 +++++++++++++++++++++ .../other/random-seed-load/dependencies.d/mount-dev | 0 src/lib/source/system/other/random-seed-load/type | 1 + src/lib/source/system/other/random-seed-load/up | 8 ++++++++ .../other/random-seed-save/dependencies.d/mount | 0 .../other/random-seed-save/dependencies.d/mount-dev | 0 .../random-seed-save/dependencies.d/mount-proc | 0 .../dependencies.d/random-seed-load | 0 src/lib/source/system/other/random-seed-save/down | 16 ++++++++++++++++ src/lib/source/system/other/random-seed-save/type | 1 + src/lib/source/system/other/random-seed-save/up | 16 ++++++++++++++++ .../other/swap-fstab/dependencies.d/mount-dev | 0 .../other/swap-fstab/dependencies.d/mount-proc | 0 .../other/swap-fstab/dependencies.d/mount-sys | 0 .../system/other/swap-fstab/dependencies.d/udev | 0 src/lib/source/system/other/swap-fstab/down | 7 +++++++ src/lib/source/system/other/swap-fstab/type | 1 + src/lib/source/system/other/swap-fstab/up | 7 +++++++ src/lib/source/system/other/sysctl/type | 1 + src/lib/source/system/other/sysctl/up | 3 +++ .../other/syslog-srv/dependencies.d/mount-dev | 0 .../source/system/other/syslog-srv/notification-fd | 1 + src/lib/source/system/other/syslog-srv/producer-for | 1 + src/lib/source/system/other/syslog-srv/run | 11 +++++++++++ src/lib/source/system/other/syslog-srv/type | 1 + .../tmpfiles-dev/dependencies.d/kmod-static-nodes | 0 .../other/tmpfiles-dev/dependencies.d/mount-dev | 0 .../other/tmpfiles-dev/dependencies.d/mount-proc | 0 src/lib/source/system/other/tmpfiles-dev/type | 1 + src/lib/source/system/other/tmpfiles-dev/up | 8 ++++++++ .../other/tmpfiles-setup/dependencies.d/mount | 0 src/lib/source/system/other/tmpfiles-setup/type | 1 + src/lib/source/system/other/tmpfiles-setup/up | 8 ++++++++ 47 files changed, 168 insertions(+) create mode 100644 src/lib/source/system/other/acpid-srv/producer-for create mode 100644 src/lib/source/system/other/acpid-srv/run create mode 100644 src/lib/source/system/other/acpid-srv/type create mode 100644 src/lib/source/system/other/dmesg-srv/dependencies.d/mount-proc create mode 100644 src/lib/source/system/other/dmesg-srv/producer-for create mode 100644 src/lib/source/system/other/dmesg-srv/run create mode 100644 src/lib/source/system/other/dmesg-srv/type create mode 100644 src/lib/source/system/other/kmod-static-nodes/dependencies.d/mount-run create mode 100644 src/lib/source/system/other/kmod-static-nodes/type create mode 100644 src/lib/source/system/other/kmod-static-nodes/up create mode 100644 src/lib/source/system/other/local/down create mode 100644 src/lib/source/system/other/local/type create mode 100644 src/lib/source/system/other/local/up create mode 100644 src/lib/source/system/other/modules/type create mode 100644 src/lib/source/system/other/modules/up create mode 100644 src/lib/source/system/other/random-seed-load/dependencies.d/mount-dev create mode 100644 src/lib/source/system/other/random-seed-load/type create mode 100644 src/lib/source/system/other/random-seed-load/up create mode 100644 src/lib/source/system/other/random-seed-save/dependencies.d/mount create mode 100644 src/lib/source/system/other/random-seed-save/dependencies.d/mount-dev create mode 100644 src/lib/source/system/other/random-seed-save/dependencies.d/mount-proc create mode 100644 src/lib/source/system/other/random-seed-save/dependencies.d/random-seed-load create mode 100644 src/lib/source/system/other/random-seed-save/down create mode 100644 src/lib/source/system/other/random-seed-save/type create mode 100644 src/lib/source/system/other/random-seed-save/up create mode 100644 src/lib/source/system/other/swap-fstab/dependencies.d/mount-dev create mode 100644 src/lib/source/system/other/swap-fstab/dependencies.d/mount-proc create mode 100644 src/lib/source/system/other/swap-fstab/dependencies.d/mount-sys create mode 100644 src/lib/source/system/other/swap-fstab/dependencies.d/udev create mode 100644 src/lib/source/system/other/swap-fstab/down create mode 100644 src/lib/source/system/other/swap-fstab/type create mode 100644 src/lib/source/system/other/swap-fstab/up create mode 100644 src/lib/source/system/other/sysctl/type create mode 100644 src/lib/source/system/other/sysctl/up create mode 100644 src/lib/source/system/other/syslog-srv/dependencies.d/mount-dev create mode 100644 src/lib/source/system/other/syslog-srv/notification-fd create mode 100644 src/lib/source/system/other/syslog-srv/producer-for create mode 100644 src/lib/source/system/other/syslog-srv/run create mode 100644 src/lib/source/system/other/syslog-srv/type create mode 100644 src/lib/source/system/other/tmpfiles-dev/dependencies.d/kmod-static-nodes create mode 100644 src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-dev create mode 100644 src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-proc create mode 100644 src/lib/source/system/other/tmpfiles-dev/type create mode 100644 src/lib/source/system/other/tmpfiles-dev/up create mode 100644 src/lib/source/system/other/tmpfiles-setup/dependencies.d/mount create mode 100644 src/lib/source/system/other/tmpfiles-setup/type create mode 100644 src/lib/source/system/other/tmpfiles-setup/up (limited to 'src/lib/source/system/other') diff --git a/src/lib/source/system/other/acpid-srv/producer-for b/src/lib/source/system/other/acpid-srv/producer-for new file mode 100644 index 0000000..c5fe510 --- /dev/null +++ b/src/lib/source/system/other/acpid-srv/producer-for @@ -0,0 +1 @@ +acpid-log diff --git a/src/lib/source/system/other/acpid-srv/run b/src/lib/source/system/other/acpid-srv/run new file mode 100644 index 0000000..2837d01 --- /dev/null +++ b/src/lib/source/system/other/acpid-srv/run @@ -0,0 +1,10 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://sourceforge.net/projects/acpid2/ + +fdmove -c 2 1 + +acpid + -f + -n diff --git a/src/lib/source/system/other/acpid-srv/type b/src/lib/source/system/other/acpid-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/src/lib/source/system/other/acpid-srv/type @@ -0,0 +1 @@ +longrun diff --git a/src/lib/source/system/other/dmesg-srv/dependencies.d/mount-proc b/src/lib/source/system/other/dmesg-srv/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/dmesg-srv/producer-for b/src/lib/source/system/other/dmesg-srv/producer-for new file mode 100644 index 0000000..83a6f9a --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/producer-for @@ -0,0 +1 @@ +dmesg-log diff --git a/src/lib/source/system/other/dmesg-srv/run b/src/lib/source/system/other/dmesg-srv/run new file mode 100644 index 0000000..18beb07 --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/run @@ -0,0 +1,10 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://skarnet.org/software/s6/ + +fdmove -c 2 1 + +redirfd -r 0 /proc/kmsg + +ucspilogd diff --git a/src/lib/source/system/other/dmesg-srv/type b/src/lib/source/system/other/dmesg-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/src/lib/source/system/other/dmesg-srv/type @@ -0,0 +1 @@ +longrun diff --git a/src/lib/source/system/other/kmod-static-nodes/dependencies.d/mount-run b/src/lib/source/system/other/kmod-static-nodes/dependencies.d/mount-run new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/kmod-static-nodes/type b/src/lib/source/system/other/kmod-static-nodes/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/kmod-static-nodes/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/kmod-static-nodes/up b/src/lib/source/system/other/kmod-static-nodes/up new file mode 100644 index 0000000..d83d5b9 --- /dev/null +++ b/src/lib/source/system/other/kmod-static-nodes/up @@ -0,0 +1,9 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/about/ + +fdmove -c 2 1 + +foreground { mkdir -p /run/tmpfiles.d } +foreground { kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf } diff --git a/src/lib/source/system/other/local/down b/src/lib/source/system/other/local/down new file mode 100644 index 0000000..0a47f3d --- /dev/null +++ b/src/lib/source/system/other/local/down @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +elglob -0 SCRIPTS /etc/local.d/*.down + +forx -pE SCRIPT { ${SCRIPTS} } + ${SCRIPT} diff --git a/src/lib/source/system/other/local/type b/src/lib/source/system/other/local/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/local/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/local/up b/src/lib/source/system/other/local/up new file mode 100644 index 0000000..3a553ff --- /dev/null +++ b/src/lib/source/system/other/local/up @@ -0,0 +1,10 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +elglob -0 SCRIPTS /etc/local.d/*.up + +forx -pE SCRIPT { ${SCRIPTS} } + ${SCRIPT} diff --git a/src/lib/source/system/other/modules/type b/src/lib/source/system/other/modules/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/modules/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/modules/up b/src/lib/source/system/other/modules/up new file mode 100644 index 0000000..3983ae1 --- /dev/null +++ b/src/lib/source/system/other/modules/up @@ -0,0 +1,21 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +define MODULE_CONF /etc/modules-load.d + +elglob -0sd'' FILES ${MODULE_CONF}/* +if -x0 { eltest ${FILES} } +define -sd'' SPLITFILES ${FILES} +pipeline { cat ${SPLITFILES} } +pipeline { + sed + -e "/^#/d" + -e "s/^[\ \t]*//g" + -e "s/[\ \t]*$//g" + -e "/^$/d" +} +forstdin -pE MODULE + modprobe -ab ${MODULE} diff --git a/src/lib/source/system/other/random-seed-load/dependencies.d/mount-dev b/src/lib/source/system/other/random-seed-load/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/random-seed-load/type b/src/lib/source/system/other/random-seed-load/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/random-seed-load/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/random-seed-load/up b/src/lib/source/system/other/random-seed-load/up new file mode 100644 index 0000000..53de975 --- /dev/null +++ b/src/lib/source/system/other/random-seed-load/up @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +if -x0 { eltest -e /var/lib/rngseed } +redirfd -w 1 /dev/urandom cat /var/lib/rngseed diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/mount b/src/lib/source/system/other/random-seed-save/dependencies.d/mount new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/mount-dev b/src/lib/source/system/other/random-seed-save/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/mount-proc b/src/lib/source/system/other/random-seed-save/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/random-seed-save/dependencies.d/random-seed-load b/src/lib/source/system/other/random-seed-save/dependencies.d/random-seed-load new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/random-seed-save/down b/src/lib/source/system/other/random-seed-save/down new file mode 100644 index 0000000..cdbf16f --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/down @@ -0,0 +1,16 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +backtick -ED "512" BYTES { cat /proc/sys/kernel/random/poolsize } + +umask 377 + +redirfd -a 2 /dev/null + +dd if=/dev/urandom + of=/var/lib/rngseed + count=1 + bs=${BYTES} diff --git a/src/lib/source/system/other/random-seed-save/type b/src/lib/source/system/other/random-seed-save/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/random-seed-save/up b/src/lib/source/system/other/random-seed-save/up new file mode 100644 index 0000000..cdbf16f --- /dev/null +++ b/src/lib/source/system/other/random-seed-save/up @@ -0,0 +1,16 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +backtick -ED "512" BYTES { cat /proc/sys/kernel/random/poolsize } + +umask 377 + +redirfd -a 2 /dev/null + +dd if=/dev/urandom + of=/var/lib/rngseed + count=1 + bs=${BYTES} diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/mount-dev b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/mount-proc b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/mount-sys b/src/lib/source/system/other/swap-fstab/dependencies.d/mount-sys new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/swap-fstab/dependencies.d/udev b/src/lib/source/system/other/swap-fstab/dependencies.d/udev new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/swap-fstab/down b/src/lib/source/system/other/swap-fstab/down new file mode 100644 index 0000000..00e5a61 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/down @@ -0,0 +1,7 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +swapoff -a diff --git a/src/lib/source/system/other/swap-fstab/type b/src/lib/source/system/other/swap-fstab/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/swap-fstab/up b/src/lib/source/system/other/swap-fstab/up new file mode 100644 index 0000000..31d1a50 --- /dev/null +++ b/src/lib/source/system/other/swap-fstab/up @@ -0,0 +1,7 @@ +#!@shebangdir@/execlineb -P + +# ISC license. + +fdmove -c 2 1 + +swapon -a diff --git a/src/lib/source/system/other/sysctl/type b/src/lib/source/system/other/sysctl/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/sysctl/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/sysctl/up b/src/lib/source/system/other/sysctl/up new file mode 100644 index 0000000..b7d376f --- /dev/null +++ b/src/lib/source/system/other/sysctl/up @@ -0,0 +1,3 @@ +fdmove -c 2 1 + +sysctl -q --system diff --git a/src/lib/source/system/other/syslog-srv/dependencies.d/mount-dev b/src/lib/source/system/other/syslog-srv/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/syslog-srv/notification-fd b/src/lib/source/system/other/syslog-srv/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/notification-fd @@ -0,0 +1 @@ +3 diff --git a/src/lib/source/system/other/syslog-srv/producer-for b/src/lib/source/system/other/syslog-srv/producer-for new file mode 100644 index 0000000..0a564f6 --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/producer-for @@ -0,0 +1 @@ +syslog-log diff --git a/src/lib/source/system/other/syslog-srv/run b/src/lib/source/system/other/syslog-srv/run new file mode 100644 index 0000000..a410c5c --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/run @@ -0,0 +1,11 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://skarnet.org/software/s6/s6-socklog.html + +fdmove -c 2 1 + +s6-envuidgid @loguser@ + +s6-socklog + -d3 -U diff --git a/src/lib/source/system/other/syslog-srv/type b/src/lib/source/system/other/syslog-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/src/lib/source/system/other/syslog-srv/type @@ -0,0 +1 @@ +longrun diff --git a/src/lib/source/system/other/tmpfiles-dev/dependencies.d/kmod-static-nodes b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/kmod-static-nodes new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-dev b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-dev new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-proc b/src/lib/source/system/other/tmpfiles-dev/dependencies.d/mount-proc new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/tmpfiles-dev/type b/src/lib/source/system/other/tmpfiles-dev/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/tmpfiles-dev/up b/src/lib/source/system/other/tmpfiles-dev/up new file mode 100644 index 0000000..d95481c --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-dev/up @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://github.com/systemd/systemd + +fdmove -c 2 1 + +systemd-tmpfiles --prefix=/dev --create --boot diff --git a/src/lib/source/system/other/tmpfiles-setup/dependencies.d/mount b/src/lib/source/system/other/tmpfiles-setup/dependencies.d/mount new file mode 100644 index 0000000..e69de29 diff --git a/src/lib/source/system/other/tmpfiles-setup/type b/src/lib/source/system/other/tmpfiles-setup/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-setup/type @@ -0,0 +1 @@ +oneshot diff --git a/src/lib/source/system/other/tmpfiles-setup/up b/src/lib/source/system/other/tmpfiles-setup/up new file mode 100644 index 0000000..54bcd71 --- /dev/null +++ b/src/lib/source/system/other/tmpfiles-setup/up @@ -0,0 +1,8 @@ +#!@shebangdir@/execlineb -P + +# ISC license. +# https://github.com/systemd/systemd + +fdmove -c 2 1 + +systemd-tmpfiles --exclude-prefix=/dev --create --remove --boot -- cgit v1.2.3