tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rc.d/rndctl
All:
I was about to assemble a PR to submit an etc/rc.d/rndctl to enable
various default sources at run time. I wanted to get some community
feedback on what are sound default RNG sources (net, disk, rng, etc.)
~BAS
# diff -u /usr/dst/etc/defaults/rc.conf /etc/defaults/rc.conf
--- /usr/dst/etc/defaults/rc.conf 2008-09-17 09:56:29.000000000
-0400
+++ /etc/defaults/rc.conf 2008-09-17 15:47:55.000000000 -0400
@@ -296,6 +299,9 @@
moused=NO # serial mouse handler
moused_flags="-p /dev/tty00"
+rndctl=YES # Random number
generator
+ rndctl_flags="-e -t disk net rng"
+
Here's an example script (stolen from /etc/rc.d/moused):
% more /etc/rc.d/rndctl
#!/bin/sh
#
# $NetBSD$
#
# PROVIDE: rndctl
# BEFORE: cgd racoon ipsec sshd
$_rc_subr_loaded . /etc/rc.subr
name="rndctl"
rcvar=$name
command="/sbin/${name}"
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index