summaryrefslogtreecommitdiffstats
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
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
-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
-rw-r--r--etc/rc.diskless15
-rw-r--r--etc/rc.diskless25
-rw-r--r--etc/rc.initdiskless5
8 files changed, 25 insertions, 15 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
diff --git a/etc/rc.diskless1 b/etc/rc.diskless1
index 050628a..cc1562d 100644
--- a/etc/rc.diskless1
+++ b/etc/rc.diskless1
@@ -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.diskless2 b/etc/rc.diskless2
index 8fd08f6..ad643d7 100644
--- a/etc/rc.diskless2
+++ b/etc/rc.diskless2
@@ -72,6 +72,11 @@ echo "+++ create lastlog"
mount -a # chown and chgrp are in /usr
+# Since we are starting with a very fresh /etc on an MFS:
+if [ -d /conf/default/etc ]; then
+ newaliases
+if
+
#
# XXX make sure to create one dir for each printer as requested by lpd
#
diff --git a/etc/rc.initdiskless b/etc/rc.initdiskless
index 050628a..cc1562d 100644
--- a/etc/rc.initdiskless
+++ b/etc/rc.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.
#
OpenPOWER on IntegriCloud