summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2009-03-10 22:04:12 +0100
committerThomas Bächler <thomas@archlinux.org>2009-03-10 22:04:12 +0100
commite679e9db7c09474da1411db3f18449a1f5e8cc6b (patch)
tree0d66220e915396e3acef9c86c311de62bfbe136b
parentc79828e29eae787048535fa67726c2f174f6b2c5 (diff)
Create /var/lib/misc if it doesn't exist2009.03-2
This is necessary because the filesystem package doesn't currently contain this directory
-rwxr-xr-xrc.shutdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 7f79c88..85ad835 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -52,6 +52,7 @@ stat_done
stat_busy "Saving Random Seed"
RANDOM_SEED=/var/lib/misc/random-seed
+[ -d $(dirname $RANDOM_SEED) ] || mkdir -p $(dirname $RANDOM_SEED)
: > $RANDOM_SEED
/bin/chmod 0600 $RANDOM_SEED
POOL_FILE=/proc/sys/kernel/random/poolsize