summaryrefslogtreecommitdiff
path: root/debian/patches/david-add-random.patch
blob: 4f3dd240258821e7c26940c010578e3ee3365aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Hi,

With the random merge, can /dev/(u)random devices now be added to
MAKEDEV?  (I'm not married to the seed file argument, in case there
is a better default location for it.)

Justus: I changed it to the one currently used by Debian Hurd.

Thanks.

David

 sutils/MAKEDEV.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh
index 0a8f514..db98353 100644
--- a/sutils/MAKEDEV.sh
+++ b/sutils/MAKEDEV.sh
@@ -100,7 +100,7 @@ mkdev() {
 	;;
 
       std)
-	mkdev console tty null zero full fd time mem klog shm
+	mkdev console tty null zero random urandom full fd time mem klog shm
 	;;
       console|com[0-9])
 	st $I root 600 /hurd/term ${DEVDIR}/$I device $I;;
@@ -117,6 +117,10 @@ mkdev() {
 	st $I root 666 /hurd/null --full;;
       zero)
 	st $I root 666 /bin/nullauth -- /hurd/storeio -Tzero;;
+      random)
+	st $I root 644 /hurd/random --secure --seed-file /var/spool/random-seed;;
+      urandom)
+	st $I root 644 /hurd/random --fast --seed-file /var/spool/random-seed;;
       tty)
 	st $I root 666 /hurd/magic tty;;
       fd)
-- 
1.9.3