From 415c05a038c613258e0764a49f035aebcca89108 Mon Sep 17 00:00:00 2001 From: "Brian S. Dean" Date: Sat, 22 Jun 2002 19:44:25 +0000 Subject: [PATCH] Create sendmail required directories if sendmail is enabled. --- etc/rc.diskless2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/rc.diskless2 b/etc/rc.diskless2 index a21dfbecc2af..5c17585c6400 100644 --- a/etc/rc.diskless2 +++ b/etc/rc.diskless2 @@ -60,6 +60,13 @@ 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 +[Nn][Oo][Nn][Ee]) + ;; +*) + /usr/sbin/mtree -deU -f /etc/mtree/BSD.sendmail.dist -p / + ;; +esac echo "+++ create log files based on the contents of /etc/newsyslog.conf" LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf`