From 41c1e170d6cfb63980111e70931ab61f1a6af76b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 1 Oct 2008 08:46:53 +0000 Subject: Add an env var so plugins know when leaving single means the end, or start the default level. --- src/rc/rc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/rc/rc.c b/src/rc/rc.c index 75453838..e6472bdb 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -1092,6 +1092,7 @@ int main(int argc, char **argv) going_down = true; rc_runlevel_set(newlevel); setenv("RC_RUNLEVEL", newlevel, 1); + setenv("RC_GOINGDOWN", "YES", 1); #ifdef __FreeBSD__ /* FIXME: we shouldn't have todo this */ -- cgit v1.2.3