diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless index c312265f6b54..a86e5540268a 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 050628a89524..cc1562d24351 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 c312265f6b54..a86e5540268a 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 c312265f6b54..a86e5540268a 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 c312265f6b54..a86e5540268a 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 050628a89524..cc1562d24351 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 8fd08f67c138..ad643d7524a5 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 050628a89524..cc1562d24351 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. #