udev: Drop hwrng rules

This is another fragment of rngd - the gift that keeps giving.

The udev rules file contains a lot of stuff for a prototype which never
went into production. So, that can be dropped.

It would have been left with one rule that starts rngd whenever a HWRNG
is being found. That is however no longer needed as rngd is being
started in the init process. We no longer need to initialize it as early
as possible to seed the kernel's PRNG.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2023-07-31 13:43:47 +00:00
parent b1110eb1bd
commit 91443f9234
6 changed files with 3 additions and 37 deletions

View File

@@ -24,18 +24,8 @@
case "${1}" in
start)
if pidofproc -s /usr/sbin/rngd; then
boot_mesg "Random Number Generator Daemon is already running..."
echo_ok;
exit 0
fi
if [ -e /dev/hwrngtty ]; then
HWRNG=/dev/hwrngtty
else
HWRNG=/dev/hwrng
fi
boot_mesg "Starting Random Number Generator Daemon..."
loadproc /usr/sbin/rngd -r $HWRNG --quiet
loadproc /usr/sbin/rngd --quiet
;;
stop)
@@ -53,10 +43,6 @@ case "${1}" in
statusproc /usr/sbin/rngd
;;
udev-event)
$0 restart &>/dev/null
;;
*)
echo "Usage: ${0} {start|stop|restart|status}"
exit 1