Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 146935 Details for
Bug 215371
rngd is missing initscript, attached
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
Fix to previous version for properly modprobing hwrng
rngd.init (text/plain), 2.38 KB, created by
Paul Wouters
on 2007-01-30 18:12:16 UTC
(
hide
)
Description:
Fix to previous version for properly modprobing hwrng
Filename:
MIME Type:
Creator:
Paul Wouters
Created:
2007-01-30 18:12:16 UTC
Size:
2.38 KB
patch
obsolete
>#!/bin/bash ># ># rng-tool: Daemon and tools to use a Hardware TRNG to feed /dev/random ># ># chkconfig: - 99 1 ># description: The rngd daemon acts as a bridge between a Hardware TRNG ># (true random number generator) such as the ones in some ># Intel/AMD/VIA chipsets, and the kernel's PRNG (peusdo ># (pseudo-random number generator). ># processname: /sbin/rngd ># >### BEGIN INIT INFO ># Provides: rngd ># Required-Start: $syslog ># Required-Start: $syslog ># Required-Stop: ># Default-Start: 2 3 5 ># Default-Stop: 0 6 ># Short-Description: Starts the rngd hardware random number generator ># Description: The rngd daemon acts as a bridge between a Hardware TRNG ># (true random number generator) such as the ones in some ># Intel/AMD/VIA/Geode chipsets, and the kernel's PRNG (peusdo ># (pseudo-random number generator). >### END INIT INFO > >PIDFILE=/var/run/rngd/rngd.pid >KERNMODS="intel_rng via-rng amd-rng geode-rng" >DEVICELIST="hwrng hw_random hwrandom" >HRNGDEVICE=/dev/hwrng > ># Source function library. >. /etc/init.d/functions > >[ -f /sbin/rngd ] || exit 1 > >probehardware() { > for i in ${KERNMODS} ; do > modprobe -q $i > done > >finddevice () { > [ -c "${HRNGDEVICE}" ] && return 0 > for i in ${DEVICELIST} ; do > if [ -c "/dev/$i" ] ; then > HRNGDEVICE="/dev/$i" > return 0 > fi > if [ -c "/dev/misc/$i" ] ; then > HRNGDEVICE="/dev/misc/$i" > return 0 > fi > done > > echo "(Hardware RNG device inode not found)" > echo "$0: Cannot find a hardware RNG device to use." >&2 > exit 1 >} > >start() > echo "Probing for HRNG module" > probehardware > finddevice > echo -n $"Starting rngd: " > daemon /sbin/rngd -r /dev/random -r $HRNGDEVICE > RETVAL=$? > echo > return $RETVAL >} > >stop() { > echo -n $"Shutting down rngd service: " > killproc rngd > RETVAL=$? > if [ $RETVAL -eq 0 ] ; then > rm -f /var/lock/subsys/rngd > rm -f /var/run/rngd/rngd.pid > fi > echo > touch /var/lock/subsys/rngd > return $RETVAL >} > >restart() { > stop > start >} > >RETVAL=0 > ># See how we were called. >case "$1" in > start) > start > ;; > stop) > stop > ;; > restart) > restart > ;; > condrestart) > [ -f /var/lock/subsys/rngd ] && restart || : > ;; > *) > echo $"Usage: $0 {start|stop|restart|condrestart}" > exit 1 >esac > >exit $?
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 215371
:
141082
|
146934
|
146935
|
317293