summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-09-05 19:19:38 +0200
committerLeah Neukirchen <chneukirchen@gmail.com>2019-09-06 14:40:42 +0200
commit6e355b9c6567363eff97940ba94c3e086028435c (patch)
tree5d7e5a7089ba93fc9732f502aa1722486e2b95cc
parent8045334f08798ea91e25875539efb3b430ed3e99 (diff)
downloadrunit-void-6e355b9c6567363eff97940ba94c3e086028435c.tar.gz
runit-void-6e355b9c6567363eff97940ba94c3e086028435c.tar.xz
runit-void-6e355b9c6567363eff97940ba94c3e086028435c.zip
core-services/05-misc.sh: log boot in wtmp
-rwxr-xr-x32
-rw-r--r--core-services/05-misc.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/3 b/3
index 20d7c99..7945490 100755
--- a/3
+++ b/3
@@ -27,7 +27,7 @@ if [ -z "$VIRTUALIZATION" -a -n "$HARDWARECLOCK" ]; then
     hwclock --systohc ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z)}
 fi
 
-halt -w  # for utmp
+halt -w  # for wtmp
 
 if [ -z "$VIRTUALIZATION" ]; then
     msg "Stopping udev..."
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh
index 8aabaa0..a7d7b19 100644
--- a/core-services/05-misc.sh
+++ b/core-services/05-misc.sh
@@ -1,5 +1,7 @@
 # vim: set ts=4 sw=4 et:
 
+halt -B  # for wtmp
+
 if [ -z "$VIRTUALIZATION" ]; then
     msg "Initializing random seed..."
     cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true