mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
24 lines
551 B
Text
24 lines
551 B
Text
#
|
|
# site-specific startup actions, daemons
|
|
#
|
|
# $Id: rc.local,v 1.23 1997/02/23 09:20:47 peter Exp $
|
|
#
|
|
|
|
# If there is a global system configuration file, suck it in.
|
|
if [ -f /etc/rc.conf ]; then
|
|
. /etc/rc.conf
|
|
fi
|
|
|
|
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
|
|
|
|
echo -n 'starting local daemons:'
|
|
|
|
# put your local stuff here
|
|
|
|
echo '.'
|