mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
1130b656e5
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
19 lines
397 B
Text
19 lines
397 B
Text
#
|
|
# site-specific startup actions, daemons
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
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 '.'
|