Make the creation of the header line in /etc/motd be consistent

with other BSD based systems.

Submitted by:	wollman
This commit is contained in:
Rodney W. Grimes 1995-03-30 06:34:46 +00:00
parent 711aa1c272
commit 8c0aac9163
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7488

View File

@ -1,13 +1,12 @@
#
# site-specific startup actions, daemons
#
# $Id: rc.local,v 1.17 1995/03/30 00:10:31 ache Exp $
# $Id: rc.local,v 1.18 1995/03/30 06:26:10 rgrimes Exp $
#
T=/tmp/_motd
rm -f $T
uname -v | sed -e 's/199[0-9]/&\
/' > $T
uname -v | sed -e 's,^\([^#]*\) #\(.*199[0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $T
echo "" >> $T
sed '1,/^$/d' < /etc/motd >> $T
cp $T /etc/motd