summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index ba855fa9..f796a39a 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -61,8 +61,12 @@ if [ "$1" = configure ] && [ "$2" ]; then
then
# old random-egd translator, remove
settrans -go /dev/random
+ rm -f /dev/random
settrans -go /dev/urandom
+ rm -f /dev/urandom
fi
/usr/lib/hurd/setup-translators -K
+ update-alternatives --install /dev/random random /dev/random-hurd 10 \
+ --slave /dev/urandom urandom /dev/urandom-hurd
fi