summaryrefslogtreecommitdiffstats
path: root/etc/rc.local
blob: 2b2a60d372643c4b6ef60c4949d416ec746ba84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# site-specific startup actions, daemons
#
#	$Id$
#

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 '.'
OpenPOWER on IntegriCloud