Browse Source

If a /etc/rc.firsttime file exists, run it just once, mailing the output to

root.  If anyone wants to use this in a siteXX.tgz file, please be sure to
*concatenate* to the file -- not replace it -- since the installer is going
to be using this file itself.
discussed with todd and halex
OPENBSD_4_7
deraadt 15 years ago
parent
commit
a0e92b1539
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/etc/rc

+ 8
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.334 2009/12/04 21:58:41 deraadt Exp $
# $OpenBSD: rc,v 1.335 2010/01/04 18:03:30 deraadt 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.
@ -779,6 +779,13 @@ if [ X"${krb5_slave_kdc}" = X"YES" ]; then
# Remember to enable hpropd in inetd.conf # Remember to enable hpropd in inetd.conf
fi 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
fi
rm -f /etc/rc.firsttime.run
[ -f /etc/rc.local ] && . /etc/rc.local [ -f /etc/rc.local ] && . /etc/rc.local
echo -n standard daemons: echo -n standard daemons:


Loading…
Cancel
Save