diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-12-24 15:22:57 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-12-24 15:22:57 +0000 |
| commit | 05742401238ce51e1ef0f840bc0c06b8c8e4ff33 (patch) | |
| tree | 21bbb6b1d0b651d0fd576408091a9c298514eaf6 /layout/rootfs/etc/s6-rc/source/init-utmp | |
| parent | 6065473e2438590c6e9204b50c6b49b473bdb1fa (diff) | |
| download | lh-bootstrap-05742401238ce51e1ef0f840bc0c06b8c8e4ff33.tar.gz | |
Adjust s6-rc db layout
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source/init-utmp')
6 files changed, 5 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/btmpd diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/utmpd diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/dependencies.d/wtmpd diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/down b/layout/rootfs/etc/s6-rc/source/init-utmp/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/type b/layout/rootfs/etc/s6-rc/source/init-utmp/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source/init-utmp/up b/layout/rootfs/etc/s6-rc/source/init-utmp/up new file mode 100644 index 0000000..6d61a8b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source/init-utmp/up @@ -0,0 +1,3 @@ +backtick -E kversion { uname -r } +if { utmps-write -t 2000 -uw -l reboot -p 0 -h ${kversion} -- "~~" BOOT_TIME "~" } + utmps-write -t 2000 -uw -l runlevel -p 20018 -h ${kversion} -- "~~" RUN_LVL "~" |
