Browse Source

supress empty rc.firsttime email and add hostname to the subject line

ok deraadt krw
OPENBSD_5_0
halex 13 years ago
parent
commit
6ff9d79ec0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc

+ 2
- 2
src/etc/rc View File

@ -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 # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -515,7 +515,7 @@ fi
if [ -f /etc/rc.firsttime ]; then if [ -f /etc/rc.firsttime ]; then
mv /etc/rc.firsttime /etc/rc.firsttime.run mv /etc/rc.firsttime /etc/rc.firsttime.run
. /etc/rc.firsttime.run 2>&1 | tee /dev/tty | . /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 fi
rm -f /etc/rc.firsttime.run rm -f /etc/rc.firsttime.run


Loading…
Cancel
Save