From 30de77763946d45d8d810e7e6d96ff031063826f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 28 Aug 2014 10:23:51 +0200 Subject: core-services/99-cleanup.sh: create /var/log/{b,w}tmp to make last(1) work. --- core-services/99-cleanup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'core-services/99-cleanup.sh') diff --git a/core-services/99-cleanup.sh b/core-services/99-cleanup.sh index fff258f..4ede9c1 100644 --- a/core-services/99-cleanup.sh +++ b/core-services/99-cleanup.sh @@ -1,5 +1,11 @@ #!/bin/sh -install -m0664 -o root -g utmp /dev/null /run/utmp +install -m0644 -o root -g utmp /dev/null /run/utmp +if [ ! -e /var/log/wtmp ]; then + install -m0664 -o root -g utmp /dev/null /var/log/wtmp +fi +if [ ! -e /var/log/btmp ]; then + install -m0664 -o root -g utmp /dev/null /var/log/btmp +fi install -dm1777 /tmp/.X11-unix /tmp/.ICE-unix rm -f /etc/nologin /forcefsck /forcequotacheck /fastboot -- cgit 1.4.1