summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2011-08-18 23:51:12 +0000
committerSamuel Thibault <sthibault@debian.org>2011-08-22 00:11:04 +0000
commit443eab01605fa044c97913b64142d7a9b5410b95 (patch)
treee747d48dd3d552974d2dca7e36937765bb17b4b6
parent95fe1abb0b82ba8db6c7c2c0e0f52f8a1667cb77 (diff)
On upgrade from random-egd-based installations, replace the random-egd
translator
-rw-r--r--debian/hurd.postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index 965f8ab9..4c3fc2c2 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -57,6 +57,12 @@ fi
if [ "$1" = configure ] && [ "$2" ]; then
# Upgrade: create the missing device and server nodes
+ if showtrans /dev/random 2> /dev/null | grep -q /tmp/entropy.sock
+ then
+ # old random-egd translator, remove
+ settrans -g /dev/random
+ settrans -g /dev/urandom
+ fi
/usr/lib/hurd/setup-translators -K
fi