[arch-general] Another suggested patch for the init scripts

Magnus Therning magnus at therning.org
Fri Aug 20 15:43:34 EDT 2010


On 20/08/10 13:35, Roman Kyrylych wrote:
> On Fri, Aug 20, 2010 at 11:08, Magnus Therning <magnus at therning.org> 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 at therning.org>
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20100820/79de1f8f/attachment.bin>


More information about the arch-general mailing list