aboutsummaryrefslogtreecommitdiffstats
path: root/tdf-postinst-udeb/debian
diff options
context:
space:
mode:
Diffstat (limited to 'tdf-postinst-udeb/debian')
-rwxr-xr-xtdf-postinst-udeb/debian/postinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/tdf-postinst-udeb/debian/postinst b/tdf-postinst-udeb/debian/postinst
new file mode 100755
index 0000000..fc933d3
--- /dev/null
+++ b/tdf-postinst-udeb/debian/postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -ue
+
+if [ "$1" = 'configure' ]; then
+ # Linux >=3.16 mixes output from the VirtIO RNG (/dev/hwrng) into
+ # /dev/random hence we no longer need to do this in userspace using
+ # `rngd`
+ register-module virtio-rng
+fi
+
+#DEBHELPER#
+exit 0