summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-02-23 01:49:20 +0000
committerobrien <obrien@FreeBSD.org>2002-02-23 01:49:20 +0000
commitd1962c6a7d967290959f2ae307bf59695e402b6d (patch)
treef13af04195c3414114ea8bbf9c9a718f97a6f9ee /etc/rc.d
parent7549b9e5155e27e967575abeff695db2c4072c08 (diff)
downloadFreeBSD-src-d1962c6a7d967290959f2ae307bf59695e402b6d.zip
FreeBSD-src-d1962c6a7d967290959f2ae307bf59695e402b6d.tar.gz
The usage of 'newaliases' needs to be after we know for sure that /usr
is mounted. Submitted by: rizzo
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/diskless5
-rw-r--r--etc/rc.d/initdiskless5
-rw-r--r--etc/rc.d/resolv5
-rw-r--r--etc/rc.d/tmp5
-rw-r--r--etc/rc.d/var5
5 files changed, 20 insertions, 5 deletions
diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless
index c312265..a86e554 100644
--- a/etc/rc.d/diskless
+++ b/etc/rc.d/diskless
@@ -72,6 +72,11 @@ if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi
+echo "+++ create lastlog"
+/usr/bin/touch /var/log/lastlog
+
+if
+
# Since we are starting with a very fresh /etc on an MFS:
if [ -d /conf/default/etc ]; then
newaliases
diff --git a/etc/rc.d/initdiskless b/etc/rc.d/initdiskless
index 050628a..cc1562d 100644
--- a/etc/rc.d/initdiskless
+++ b/etc/rc.d/initdiskless
@@ -115,11 +115,6 @@ for i in ${bootp_ipbca} ${bootp_ipa} ; do
fi
done
-# Since we are starting with a very fresh /etc on an MFS:
-if [ -d /conf/default/etc ]; then
- newaliases
-if
-
# Tell /etc/rc to run the specified script after it does its mounts but
# before it does anything else.
#
diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv
index c312265..a86e554 100644
--- a/etc/rc.d/resolv
+++ b/etc/rc.d/resolv
@@ -72,6 +72,11 @@ if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi
+echo "+++ create lastlog"
+/usr/bin/touch /var/log/lastlog
+
+if
+
# Since we are starting with a very fresh /etc on an MFS:
if [ -d /conf/default/etc ]; then
newaliases
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp
index c312265..a86e554 100644
--- a/etc/rc.d/tmp
+++ b/etc/rc.d/tmp
@@ -72,6 +72,11 @@ if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi
+echo "+++ create lastlog"
+/usr/bin/touch /var/log/lastlog
+
+if
+
# Since we are starting with a very fresh /etc on an MFS:
if [ -d /conf/default/etc ]; then
newaliases
diff --git a/etc/rc.d/var b/etc/rc.d/var
index c312265..a86e554 100644
--- a/etc/rc.d/var
+++ b/etc/rc.d/var
@@ -72,6 +72,11 @@ if [ -n "$LOGFILES" ]; then
/usr/bin/touch $LOGFILES
fi
+echo "+++ create lastlog"
+/usr/bin/touch /var/log/lastlog
+
+if
+
# Since we are starting with a very fresh /etc on an MFS:
if [ -d /conf/default/etc ]; then
newaliases
OpenPOWER on IntegriCloud