summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhalex <halex@openbsd.org>2011-07-28 19:09:16 +0000
committerhalex <halex@openbsd.org>2011-07-28 19:09:16 +0000
commit2452231e0e5e33088e07c67e89c59fe79ecc41a0 (patch)
treee491f917e24219e88e81261b7c5bd289a7106ffe
parentKill integer from pointer warning when compiling with MALLOC_DEBUG. (diff)
downloadwireguard-openbsd-2452231e0e5e33088e07c67e89c59fe79ecc41a0.tar.xz
wireguard-openbsd-2452231e0e5e33088e07c67e89c59fe79ecc41a0.zip
supress empty rc.firsttime email and add hostname to the subject line
ok deraadt krw
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 900bd617c08..9a37d73080a 100644
--- a/etc/rc
+++ b/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