On 20/08/10 13:35, Roman Kyrylych wrote: > On Fri, Aug 20, 2010 at 11:08, Magnus Therning <magnus@xxxxxxxxxxxx> wrote: >> The following change takes into consideration that the size of the >> entropy pool is given in bits in 2.6 kernels. I'm shamelessly >> assuming that no one in the Arch community would be running a 2.4 >> kernel :-) > > Looks like you forgot to attach the path. ;-) Nope, but it must have gotten stripped on the way or something. Anyway, here it is inlined instead: From 945ec33fc01cc5bcb634a1f5620a9a321f03c8d7 Mon Sep 17 00:00:00 2001 From: Magnus Therning <magnus@xxxxxxxxxxxx> Date: Fri, 20 Aug 2010 09:03:30 +0100 Subject: [PATCH] The size of the entropy pool is given in bits. --- rc.shutdown | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index 4eb29cc..4d21a03 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -62,7 +62,7 @@ RANDOM_SEED=/var/lib/misc/random-seed /bin/chmod 0600 $RANDOM_SEED POOL_FILE=/proc/sys/kernel/random/poolsize if [ -r $POOL_FILE ]; then - POOL_SIZE=$(/bin/cat $POOL_FILE) + POOL_SIZE=$(( $(/bin/cat $POOL_FILE) / 8 )) else POOL_SIZE=512 fi -- 1.7.2.1 -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
Attachment:
signature.asc
Description: OpenPGP digital signature