Ensure that /var/log/lastlog exists so that login doesn't complain.

Submitted by:	Harti Brandt <brandt@fokus.gmd.de>
MFC after:	2 weeks
This commit is contained in:
bsd 2001-10-17 14:30:19 +00:00
parent cf4f60e13f
commit 7bba641f32
5 changed files with 15 additions and 0 deletions

View File

@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
case ${sendmail_enable} in
echo "+++ create log files based on the contents of /etc/newsyslog.conf"
LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf`
if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi

View File

@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
case ${sendmail_enable} in
echo "+++ create log files based on the contents of /etc/newsyslog.conf"
LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf`
if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi

View File

@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
case ${sendmail_enable} in
echo "+++ create log files based on the contents of /etc/newsyslog.conf"
LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf`
if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi

View File

@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
case ${sendmail_enable} in
echo "+++ create log files based on the contents of /etc/newsyslog.conf"
LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf`
if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi

View File

@ -67,6 +67,9 @@ if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi
echo "+++ create lastlog"
/usr/bin/touch /var/log/lastlog
mount -a # chown and chgrp are in /usr
#