diff options
author | bsd <bsd@FreeBSD.org> | 2001-10-17 14:30:19 +0000 |
---|---|---|
committer | bsd <bsd@FreeBSD.org> | 2001-10-17 14:30:19 +0000 |
commit | 84f6e238e9cf81fd11038bc6dc5a364886333192 (patch) | |
tree | 6a01500b0462c79d6ef02726ab49a8eeccea473b /etc/rc.d/diskless | |
parent | bc3aadffa1f4b1be46592a9df4d5b81cbb6af0b8 (diff) | |
download | FreeBSD-src-84f6e238e9cf81fd11038bc6dc5a364886333192.zip FreeBSD-src-84f6e238e9cf81fd11038bc6dc5a364886333192.tar.gz |
Ensure that /var/log/lastlog exists so that login doesn't complain.
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 2 weeks
Diffstat (limited to 'etc/rc.d/diskless')
-rw-r--r-- | etc/rc.d/diskless | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless index 740c23c..ce88374 100644 --- a/etc/rc.d/diskless +++ b/etc/rc.d/diskless @@ -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 |