=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/rc,v retrieving revision 1.493 retrieving revision 1.494 diff -c -r1.493 -r1.494 *** src/etc/rc 2017/02/26 16:51:18 1.493 --- src/etc/rc 2017/04/18 23:06:50 1.494 *************** *** 1,4 **** ! # $OpenBSD: rc,v 1.493 2017/02/26 16:51:18 matthieu Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the --- 1,4 ---- ! # $OpenBSD: rc,v 1.494 2017/04/18 23:06:50 schwarze Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the *************** *** 504,511 **** fi if T=$(mktemp /tmp/_motd.XXXXXXXXXX); then sysctl -n kern.version | sed 1q >$T ! echo "" >>$T ! sed '1,/^$/d' >$T cmp -s $T /etc/motd || cp $T /etc/motd rm -f $T fi --- 504,510 ---- fi if T=$(mktemp /tmp/_motd.XXXXXXXXXX); then sysctl -n kern.version | sed 1q >$T ! sed -n '/^$/,$p' >$T cmp -s $T /etc/motd || cp $T /etc/motd rm -f $T fi