Add an env var so plugins know when leaving single means the end, or start the default level.

This commit is contained in:
Roy Marples 2008-10-01 08:46:53 +00:00
parent f53197818b
commit 41c1e170d6

View File

@ -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 */