summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-08-28 06:56:55 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-08-28 06:56:55 +0000
commite18d18575da5874c284b96abc955524c7222ef4c (patch)
tree7f5b60d20e6fbb2afa8cc8cf9ab9ec63b18aa53a /etc
parent6e125a719ea91234184421b02fcd6a2cd1f80e16 (diff)
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@
Diffstat (limited to 'etc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 8700520ecc2..68182c714d2 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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.
# 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
if [[ -f /etc/rc.$_suffix ]]; then
+ echo "running rc.$_suffix"
mv /etc/rc.$_suffix /etc/rc.$_suffix.run
. /etc/rc.$_suffix.run 2>&1 | tee /dev/tty |
mail -Es "$(hostname) rc.$_suffix output" root >/dev/null