Browse Source

Display that we are running the upgrade scripts when they exist. On slowish

machines, running sysmerge(8) can take a little while so don't let people
wonder about why the output seems stuck.
ok sthen@ tb@ rpe@
OPENBSD_6_2
ajacoutot 7 years ago
parent
commit
93980c1b5a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/etc/rc

+ 2
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.515 2017/08/21 21:24:11 rpe Exp $
# $OpenBSD: rc,v 1.516 2017/08/28 06:56:54 ajacoutot Exp $
# System startup script run by init on autoboot or after single-user. # System startup script run by init on autoboot or after single-user.
# Output and error are redirected to console by init, and the console is the # Output and error are redirected to console by init, and the console is the
@ -224,6 +224,7 @@ run_upgrade_script() {
[[ -n $_suffix ]] || return 1 [[ -n $_suffix ]] || return 1
if [[ -f /etc/rc.$_suffix ]]; then if [[ -f /etc/rc.$_suffix ]]; then
echo "running rc.$_suffix"
mv /etc/rc.$_suffix /etc/rc.$_suffix.run mv /etc/rc.$_suffix /etc/rc.$_suffix.run
. /etc/rc.$_suffix.run 2>&1 | tee /dev/tty | . /etc/rc.$_suffix.run 2>&1 | tee /dev/tty |
mail -Es "$(hostname) rc.$_suffix output" root >/dev/null mail -Es "$(hostname) rc.$_suffix output" root >/dev/null


Loading…
Cancel
Save