diff options
author | Roy Marples <roy@marples.name> | 2008-04-21 10:29:29 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-04-21 10:29:29 +0000 |
commit | dc5d63aa9709f542e3a9cb7846f7a99cf60af0f6 (patch) | |
tree | e0aff1bd9d4a4012f3a8af2f01ad3d0591e99dcd | |
parent | bab5d7767ddde165f1c79e8d5ee9b748e4dae21d (diff) |
Add RC_TMPDIR so that there's a writeable location during boot.
-rw-r--r-- | src/librc/librc-depend.c | 1 | ||||
-rw-r--r-- | src/rc/rc-misc.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 0f21ce49..ac8245fd 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -655,6 +655,7 @@ static const char *const depdirs[] = RC_SVCDIR "/options", RC_SVCDIR "/exclusive", RC_SVCDIR "/scheduled", + RC_SVCDIR "/tmp", NULL }; diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 85140aac..191fa3d4 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -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); |