From d1962c6a7d967290959f2ae307bf59695e402b6d Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 23 Feb 2002 01:49:20 +0000 Subject: The usage of 'newaliases' needs to be after we know for sure that /usr is mounted. Submitted by: rizzo --- etc/rc.d/diskless | 5 +++++ etc/rc.d/initdiskless | 5 ----- etc/rc.d/resolv | 5 +++++ etc/rc.d/tmp | 5 +++++ etc/rc.d/var | 5 +++++ etc/rc.diskless1 | 5 ----- etc/rc.diskless2 | 5 +++++ etc/rc.initdiskless | 5 ----- 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. # -- cgit v1.1