30 Jun
2010
30 Jun
'10
9:47 p.m.
--- rc.shutdown | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index ef9b16d..cc39030 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -23,7 +23,7 @@ kill_everything stat_busy "Saving Random Seed" RANDOM_SEED=/var/lib/misc/random-seed -[ -d $(dirname $RANDOM_SEED) ] || mkdir -p $(dirname $RANDOM_SEED) +[[ -d ${RANDOM_SEED%/*} ]] || mkdir -p ${RANDOM_SEED%/*} : > $RANDOM_SEED /bin/chmod 0600 $RANDOM_SEED POOL_FILE=/proc/sys/kernel/random/poolsize -- 1.7.1