summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2011-03-17 16:43:52 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2011-03-17 16:43:52 +0000
commitaef677ae8409fb41e4d9d4a21fba8c121b94fa80 (patch)
tree505f346c92b0dd8ca19ff3b4ee6440db3b8a0584 /etc/rc
parent5b462fcc3a3a112cfe7096664c51c8369ccfd088 (diff)
- introduce the INRC environment variable so that rc.subr(8) knows if it
gets called from rc.local or rc.shutdown - notify the user if a given operation was successfull or not by appending the (ok) or (failed) strings to the end of the daemon name - hide stdout and stdin unless RC_DEBUG=1 is set, otherwise all the function names will be printed out and all output sent to stdin or stdout - since from now on rc.subr is taking care of printing out the daemon names on startup, we don't need to do this from rc.{local,shutdown} anymore brainkilling work done by me and ajacoutot@, ok ajacoutot@
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 5a3655c2add..c92e1353d05 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.348 2011/01/14 00:05:42 deraadt Exp $
+# $OpenBSD: rc,v 1.349 2011/03/17 16:43:51 robert Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -152,6 +152,7 @@ trap : 2
trap : 3 # shouldn't be needed
HOME=/; export HOME
+INRC=1; export INRC
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH