summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-03-30 06:34:46 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-03-30 06:34:46 +0000
commit9811f5e0ab660b3fdb6d7119a72fc0e55ae2e364 (patch)
tree3313a40ddcaadf7ae59df78c9df87b2bc215d13b /etc
parent01cb869dd82d6a110d6dea4aacdbded66d1145d9 (diff)
downloadFreeBSD-src-9811f5e0ab660b3fdb6d7119a72fc0e55ae2e364.zip
FreeBSD-src-9811f5e0ab660b3fdb6d7119a72fc0e55ae2e364.tar.gz
Make the creation of the header line in /etc/motd be consistent
with other BSD based systems. Submitted by: wollman
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.local5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/rc.local b/etc/rc.local
index 140e863..84c53c3 100644
--- a/etc/rc.local
+++ b/etc/rc.local
@@ -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
OpenPOWER on IntegriCloud