summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2011-07-09 01:30:28 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2011-07-09 01:30:28 +0000
commitb62ede43b6ac09cc9ba3315db12e28c440c2cce1 (patch)
treeb19903ff335985c783d4c33aa70cb2996d015310 /etc
parentaa56a8937683997424c97f9a6d5d895875d09902 (diff)
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@
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 2ab24dc1318..ef6a1f16285 100644
--- a/etc/rc
+++ b/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