summaryrefslogtreecommitdiff
path: root/debian/hurd.postinst
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-11-26 17:22:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-11-26 17:22:00 +0100
commite177a05d8868c020778b4fc0eef9042b5b822a71 (patch)
tree531bf07651f20d7590397aa9193fecf5b21a18f0 /debian/hurd.postinst
parentd3847ea45dd9699515fcd80c2c9a66ef1e12a1d8 (diff)
Replace /dev/u?random alternatives with /hurd/u?random.sh alternatives
* local/random-hurd.sh, urandom-hurd.sh: Add scripts to be used as hurd-provided translators for /dev/*random. * hurd.postinst: Remove "random" alternative introduced by 20111106-1, as it makes rgrep in /etc not working any more. Install random.sh alternative instead, which sets /hurd/u?random.sh scripts. * local/setup-translators: Set /dev/u?random translator from /hurd/u?random.sh instead of making them alternatives.
Diffstat (limited to 'debian/hurd.postinst')
-rw-r--r--debian/hurd.postinst7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index 23364691..8f79961d 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -60,6 +60,9 @@ fi
#DEBHELPER#
+# Remove alternative introduced by 20111106-1
+update-alternatives --remove random /dev/random-hurd
+
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
@@ -72,8 +75,8 @@ if [ "$1" = configure ] && [ "$2" ]; then
/usr/lib/hurd/setup-translators -K
fi
-update-alternatives --install /dev/random random /dev/random-hurd 10 \
- --slave /dev/urandom urandom /dev/urandom-hurd
+update-alternatives --install /hurd/random.sh random.sh /hurd/random-hurd.sh 10 \
+ --slave /hurd/urandom.sh urandom.sh /hurd/urandom-hurd.sh
if [ "$1" = configure ] ; then
# Generate initial pool