sue sysctl, don't grep the strings output
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 28 Apr 1994 20:14:48 +0000 (12:14 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 28 Apr 1994 20:14:48 +0000 (12:14 -0800)
SCCS-vsn: etc/rc.local 8.2

usr/src/etc/rc.local

index c0da6c2..9b047da 100644 (file)
@@ -1,12 +1,12 @@
 #
 # site-specific startup actions, daemons
 #
 #
 # site-specific startup actions, daemons
 #
-#      @(#)rc.local    8.1 (Berkeley) %G%
+#      @(#)rc.local    8.2 (Berkeley) %G%
 #
 
 T=/tmp/_motd
 rm -f $T
 #
 
 T=/tmp/_motd
 rm -f $T
-strings /vmunix | grep UNIX > $T
+sysctl -n kern.version > $T
 echo "" >> $T
 sed '1,/^$/d' < /etc/motd >> $T
 cp $T /etc/motd
 echo "" >> $T
 sed '1,/^$/d' < /etc/motd >> $T
 cp $T /etc/motd