diff options
author | dillon <dillon@FreeBSD.org> | 1998-12-12 23:04:21 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1998-12-12 23:04:21 +0000 |
commit | 3d6f93c5511014e58f4d67d4309e290557bd0d61 (patch) | |
tree | fcc50c07709e100584e962ef27cd12f76a1b68cb /etc/rc | |
parent | 408b593e63067f9bddbb31c26edd2b9469d500ce (diff) | |
download | FreeBSD-src-3d6f93c5511014e58f4d67d4309e290557bd0d61.zip FreeBSD-src-3d6f93c5511014e58f4d67d4309e290557bd0d61.tar.gz |
Reviewed by: cvs-current
Commit changes to rc and rc.local, removing the remaining minimal
functionality of rc.local into rc and commenting it out of rc.local
prior to the deletion of rc.local from the CVS tree.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 34 |
1 files changed, 31 insertions, 3 deletions
@@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.161 1998/12/10 08:06:59 jb Exp $ +# $Id: rc,v 1.162 1998/12/11 08:25:12 jb Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -352,11 +352,39 @@ if [ "X${local_startup}" != X"NO" ]; then echo . fi +if [ "X${update_motd}" != X"NO" ]; then + T=/tmp/_motd + rm -f $T + uname -v | sed -e 's,^\([^#]*\) #\(.* [1-2][0-9][0-9][0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $T + awk '{if (NR == 1) {if ($1 == "FreeBSD") {next} else {print "\n"$0}} else {print}}' < /etc/motd >> $T + cp $T /etc/motd + chmod 644 /etc/motd + rm -f $T +fi + # Run rc.devfs if present to customify devfs [ -f /etc/rc.devfs ] && sh /etc/rc.devfs -# Do traditional (but rather obsolete) rc.local file if it exists. -[ -f /etc/rc.local ] && sh /etc/rc.local +# Do traditional (but rather obsolete) rc.local file if it exists. If you +# use this file and want to make it programmatic, source /etc/rc.conf in +# /etc/rc.local and add your custom variables to /etc/rc.conf.local, as +# shown below. Please do not put local extensions into /etc/rc itself. +# Use /etc/rc.local +# +# ---- rc.local ---- +# if [ -f /etc/rc.conf ]; then +# . /etc/rc.conf +# fi +# +# ... additional startup conditionals ... +# ---- rc.local ---- +# + +if [ -f /etc/rc.local ]; then + echo -n 'starting local daemons:' + sh /etc/rc.local + echo '.' +fi # Raise kernel security level. This should be done only after `fsck' has # repaired local file systems if you want the securelevel to be greater than 1. |