Make sure to have rnd pseudo device.
This commit is contained in:
parent
52f2cece9f
commit
573fd4fa4d
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: MAKEDEV,v 1.6 2000/10/29 13:03:38 tsutsui Exp $
|
||||
# $NetBSD: MAKEDEV,v 1.7 2001/02/21 01:45:25 nisimura Exp $
|
||||
#
|
||||
# Device "make" file. Valid arguments:
|
||||
# std standard devices
|
||||
|
@ -239,14 +239,14 @@ ipl)
|
|||
chmod 600 ipl ipnat ipstate ipauth
|
||||
;;
|
||||
|
||||
#random)
|
||||
# rm -f random urandom
|
||||
# mknod random c 32 0
|
||||
# mknod urandom c 32 1
|
||||
# chown root.wheel random urandom
|
||||
# chmod 444 random
|
||||
# chmod 644 urandom
|
||||
# ;;
|
||||
random)
|
||||
rm -f random urandom
|
||||
mknod random c 34 0
|
||||
mknod urandom c 34 1
|
||||
chown root.wheel random urandom
|
||||
chmod 444 random
|
||||
chmod 644 urandom
|
||||
;;
|
||||
|
||||
scsibus*)
|
||||
unit=${i#scsibus};
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# $NetBSD: GENERIC,v 1.15 2000/12/19 15:51:49 tsutsui Exp $
|
||||
# $NetBSD: GENERIC,v 1.16 2001/02/21 01:44:44 nisimura Exp $
|
||||
#
|
||||
# GENERIC LUNA68K
|
||||
#
|
||||
include "arch/luna68k/conf/std.luna68k"
|
||||
|
||||
#ident "GENERIC-$Revision: 1.15 $"
|
||||
#ident "GENERIC-$Revision: 1.16 $"
|
||||
|
||||
maxusers 8
|
||||
|
||||
|
@ -134,4 +134,3 @@ pseudo-device pty # pseudo-terminals
|
|||
pseudo-device vlan # IEEE 802.1q encapsulation
|
||||
#pseudo-device vnd 2 # disk-like interface to files
|
||||
pseudo-device rnd # /dev/random and in-kernel generator
|
||||
#options RND_COM # use "com" randomness too
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: conf.c,v 1.2 2000/01/13 01:04:33 nisimura Exp $ */
|
||||
/* $NetBSD: conf.c,v 1.3 2001/02/21 01:44:44 nisimura Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.2 2000/01/13 01:04:33 nisimura Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.3 2001/02/21 01:44:44 nisimura Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -136,6 +136,8 @@ cdev_decl(raid);
|
|||
#include "wsmux.h"
|
||||
cdev_decl(wsmux);
|
||||
|
||||
#include "rnd.h"
|
||||
|
||||
struct cdevsw cdevsw[] =
|
||||
{
|
||||
cdev_cn_init(1,cn), /* 0: virtual console */
|
||||
|
@ -174,6 +176,7 @@ struct cdevsw cdevsw[] =
|
|||
cdev_scsibus_init(NSCSIBUS,scsibus), /* 31: SCSI bus */
|
||||
cdev_disk_init(NRAID,raid), /* 32: RAIDframe disk driver */
|
||||
cdev_disk_init(NWSMUX,wsmux), /* 33: ws multiplexor */
|
||||
cdev_rnd_init(NRND,rnd), /* 34: random source pseudo-device */
|
||||
};
|
||||
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
|
||||
|
||||
|
@ -246,6 +249,7 @@ static int chrtoblktbl[] = {
|
|||
/* 31 */ NODEV,
|
||||
/* 32 */ 14, /* raid */
|
||||
/* 33 */ NODEV,
|
||||
/* 34 */ NODEV,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue