Add RC_TMPDIR so that there's a writeable location during boot.

This commit is contained in:
Roy Marples 2008-04-21 10:29:29 +00:00
parent bab5d7767d
commit dc5d63aa97
2 changed files with 2 additions and 0 deletions

View File

@ -655,6 +655,7 @@ static const char *const depdirs[] =
RC_SVCDIR "/options",
RC_SVCDIR "/exclusive",
RC_SVCDIR "/scheduled",
RC_SVCDIR "/tmp",
NULL
};

View File

@ -224,6 +224,7 @@ void env_config(void)
setenv("RC_LIBDIR", RC_LIBDIR, 1);
setenv("RC_SVCDIR", RC_SVCDIR, 1);
setenv("RC_TMPDIR", RC_SVCDIR "/tmp", 1);
setenv("RC_BOOTLEVEL", RC_LEVEL_BOOT, 1);
e = rc_runlevel_get();
setenv("RC_RUNLEVEL", e, 1);