summaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
Diffstat (limited to 'rc.shutdown')
-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