diff options
author | peter <peter@FreeBSD.org> | 1999-08-06 06:22:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-08-06 06:22:43 +0000 |
commit | 29a7535fda2e7546c71a50e5610ae52f1a8571e8 (patch) | |
tree | 85048777f119767ed8dd06cf45302d9c6e1bc4d5 /etc | |
parent | 512d01cbd69ad65a3e1eaad853921bfadb43db33 (diff) | |
download | FreeBSD-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/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 || { |