From fb97fd8ad0d1c67c7b6b64b6097ea9a2b1a86d88 Mon Sep 17 00:00:00 2001 From: cgd Date: Wed, 22 Dec 1993 14:03:32 +0000 Subject: [PATCH] don't use kernfs, use strings, to get kernel version --- etc/rc.local | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/etc/rc.local b/etc/rc.local index 321ef6443cda..075101786d17 100644 --- a/etc/rc.local +++ b/etc/rc.local @@ -2,16 +2,12 @@ # site-specific startup actions, daemons # # From: @(#)rc.local 5.4 (Berkeley) 12/14/90 -# $Id: rc.local,v 1.4 1993/12/15 07:24:33 mycroft Exp $ +# $Id: rc.local,v 1.5 1993/12/22 14:03:32 cgd Exp $ # T=/tmp/_motd rm -f $T -if [ -f /kern/version ]; then - head -1 /kern/version > $T -else - echo "NetBSD ?.? (UNKNOWN)" > $T -fi +strings /netbsd | grep NetBSD > $T echo "" >> $T sed '1,/^$/d' < /etc/motd >> $T cp $T /etc/motd