about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-06-16 13:58:06 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-06-16 13:58:20 +0200
commit329b891426efc093ad8c65e96364427c2fb25b54 (patch)
tree7281d6ce831938070dbacfabde6ffaa366b3f311
parent0d783cd262a74367d467596052fc79cc4f75950b (diff)
downloadrunit-void-329b891426efc093ad8c65e96364427c2fb25b54.tar.gz
runit-void-329b891426efc093ad8c65e96364427c2fb25b54.tar.xz
runit-void-329b891426efc093ad8c65e96364427c2fb25b54.zip
core-services/99-cleanup.sh: also create lastlog
-rw-r--r--core-services/99-cleanup.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/core-services/99-cleanup.sh b/core-services/99-cleanup.sh
index f27f728..b422c34 100644
--- a/core-services/99-cleanup.sh
+++ b/core-services/99-cleanup.sh
@@ -6,5 +6,8 @@ fi
 if [ ! -e /var/log/btmp ]; then
 	install -m0600 -o root -g utmp /dev/null /var/log/btmp
 fi
+if [ ! -e /var/log/lastlog ]; then
+	install -m0600 -o root -g utmp /dev/null /var/log/lastlog
+fi
 install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix
 rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot