From 6ff9d79ec0934cea899fa2b5356c4e1069713c52 Mon Sep 17 00:00:00 2001 From: halex <> Date: Thu, 28 Jul 2011 19:09:16 +0000 Subject: [PATCH] supress empty rc.firsttime email and add hostname to the subject line ok deraadt krw --- src/etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 900bd617..9a37d730 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.391 2011/07/20 10:00:13 halex Exp $ +# $OpenBSD: rc,v 1.392 2011/07/28 19:09:16 halex Exp $ # System startup script run by init on autoboot # or after single-user. @@ -515,7 +515,7 @@ fi if [ -f /etc/rc.firsttime ]; then mv /etc/rc.firsttime /etc/rc.firsttime.run . /etc/rc.firsttime.run 2>&1 | tee /dev/tty | - mail -s 'rc.firsttime output' root >/dev/null + mail -Es "`hostname` rc.firsttime output" root >/dev/null fi rm -f /etc/rc.firsttime.run