diff options
author | Roy Marples <roy@marples.name> | 2008-10-01 08:46:53 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-10-01 08:46:53 +0000 |
commit | 41c1e170d6cfb63980111e70931ab61f1a6af76b (patch) | |
tree | 20342b92f52ab8a01840d22b86da693c43d77e96 /src/rc/rc.c | |
parent | f53197818b663ae2178b1c31a4b1c6844a208617 (diff) |
Add an env var so plugins know when leaving single means the end, or start the default level.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r-- | src/rc/rc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |