From 0752b380a59c17d27fe6d9a765131f7ead1e9c5f Mon Sep 17 00:00:00 2001 From: halex <> Date: Sat, 9 Jul 2011 01:30:27 +0000 Subject: [PATCH] tee the output from rc.firsttime to /dev/tty before passing it to mail(1) so we can enjoy it on the screen as well ok deraadt@ --- src/etc/rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 2ab24dc1..ef6a1f16 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.383 2011/07/08 22:20:05 deraadt Exp $ +# $OpenBSD: rc,v 1.384 2011/07/09 01:30:27 halex Exp $ # System startup script run by init on autoboot # or after single-user. @@ -533,8 +533,8 @@ fi # If rc.firstime exists, run it just once, and make sure it is deleted if [ -f /etc/rc.firsttime ]; then mv /etc/rc.firsttime /etc/rc.firsttime.run - . /etc/rc.firsttime.run 2>&1 | mail -s 'rc.firsttime output' \ - root >/dev/null + . /etc/rc.firsttime.run 2>&1 | tee /dev/tty | + mail -s 'rc.firsttime output' root >/dev/null fi rm -f /etc/rc.firsttime.run