summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-08-06 06:22:43 +0000
committerpeter <peter@FreeBSD.org>1999-08-06 06:22:43 +0000
commit29a7535fda2e7546c71a50e5610ae52f1a8571e8 (patch)
tree85048777f119767ed8dd06cf45302d9c6e1bc4d5 /etc
parent512d01cbd69ad65a3e1eaad853921bfadb43db33 (diff)
downloadFreeBSD-src-29a7535fda2e7546c71a50e5610ae52f1a8571e8.zip
FreeBSD-src-29a7535fda2e7546c71a50e5610ae52f1a8571e8.tar.gz
Perhaps I should have looked at the whole file rather than just the delta.
Use -eq rather than -ne. Obtained from: OpenBSD (millert, etc/rc rev 1.104)
Diffstat (limited to 'etc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 2e03dd6..742aa57 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.191 1999/08/06 06:16:06 peter Exp $
+# $Id: rc,v 1.192 1999/08/06 06:20:19 peter Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -401,7 +401,7 @@ fi
if [ "X${update_motd}" != X"NO" ]; then
T=`mktemp /tmp/_motd.XXXXXX`
- if [ $? -ne 0 ]; then
+ if [ $? -eq 0 ]; then
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
cmp -s $T /etc/motd || {
OpenPOWER on IntegriCloud