summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1996-10-24 09:43:59 +0000
committerscrappy <scrappy@FreeBSD.org>1996-10-24 09:43:59 +0000
commit314d26ddb93a640307c34e9754974426ccfb3ce2 (patch)
tree000da532bfcc08cf7ba3f0a6c576d3046610097c /etc
parent0c4d52e3499ba0b1244c08c1730ccd423d2bf924 (diff)
downloadFreeBSD-src-314d26ddb93a640307c34e9754974426ccfb3ce2.zip
FreeBSD-src-314d26ddb93a640307c34e9754974426ccfb3ce2.tar.gz
fixes:
>Description: The sed script in /etc/rc.local that builds the host/kernel ID line for the message of the day relies on the year not going past 1999. When the year passes 1999, the ID line is malformed. Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.local4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.local b/etc/rc.local
index 77d31cd..752e865 100644
--- a/etc/rc.local
+++ b/etc/rc.local
@@ -1,12 +1,12 @@
#
# site-specific startup actions, daemons
#
-# $Id: rc.local,v 1.19 1995/03/30 06:34:46 rgrimes Exp $
+# $Id: rc.local,v 1.20 1996/08/17 07:15:38 peter Exp $
#
T=/tmp/_motd
rm -f $T
-uname -v | sed -e 's,^\([^#]*\) #\(.*199[0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $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
OpenPOWER on IntegriCloud