diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-09 22:03:20 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-02-09 22:03:20 +0000 |
| commit | b796ef65d0e07ae86c34567d3913bfd81d506210 (patch) | |
| tree | 95d254854b86166cd652140c275da084c06a8d0a /layout/rootfs/etc/s6-rc/source-base/init-utmp | |
| parent | 337f33185360c93e74eab974a3c8b8e31629231e (diff) | |
| download | lh-bootstrap-b796ef65d0e07ae86c34567d3913bfd81d506210.tar.gz | |
Update to latest versions (yet untested)
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base/init-utmp')
5 files changed, 5 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/init-utmp/dependencies.d/btmp b/layout/rootfs/etc/s6-rc/source-base/init-utmp/dependencies.d/btmp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-utmp/dependencies.d/btmp diff --git a/layout/rootfs/etc/s6-rc/source-base/init-utmp/dependencies.d/wtmp b/layout/rootfs/etc/s6-rc/source-base/init-utmp/dependencies.d/wtmp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-utmp/dependencies.d/wtmp diff --git a/layout/rootfs/etc/s6-rc/source-base/init-utmp/down b/layout/rootfs/etc/s6-rc/source-base/init-utmp/down new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-utmp/down @@ -0,0 +1 @@ + diff --git a/layout/rootfs/etc/s6-rc/source-base/init-utmp/type b/layout/rootfs/etc/s6-rc/source-base/init-utmp/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/init-utmp/type @@ -0,0 +1 @@ +oneshot diff --git a/layout/rootfs/etc/s6-rc/source-base/init-utmp/up b/layout/rootfs/etc/s6-rc/source-base/init-utmp/up new file mode 100644 index 0000000..6d61a8b --- /dev/null +++ b/layout/rootfs/etc/s6-rc/source-base/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 "~" |
