Package: rng-tools Version: 2-unofficial-mt.14-1 Severity: wishlist Dear Maintainer,
rng-tools works in sysV compatibility mode. No native systemd .service file. One problem is that the the sysV version uses bash computing to search a list of random file names. I have created a bash file that does this then execs rngd. I have tested this on my raspberry PI which runs systemd version 44. Changes may be required to upgrade to current version. -----script file list-rngd--- #! /bin/bash # Author: Paul Elliott <pelli...@blackpatchpanel.com> # # License GPLv2+ DAEMON=/usr/sbin/rngd #first arg is list of possible hardware rngs to used. #first one to exist, as determined by [ -c ] will be used. LIST=$1 shift #all the remaining args to rngd RNGOPTIONS=$* HRNGDEVICE="" for i in $LIST;do if [ -c "/dev/$i" ] ; then HRNGDEVICE="/dev/$i" break; fi if [ -c "/dev/misc/$i" ] ; then HRNGDEVICE="/dev/misc/$i" break; fi done if [ "$HRNGDEVICE" == "" ] ; then logger "random device of form /dev/X or /dev/misc/X is not found, where X is one of $LIST" exit 1 fi exec -a "rngd" $DAEMON -r $HRNGDEVICE $RNGOPTIONS ----end---- --- systemd service file rng-tools.service--- # Author: Paul Elliott <pelli...@blackpatchpanel.com> # # License GPLv2+ [Unit] Description=Add entropy to /dev/random 's pool a hardware RNG # the sysV init script mentions $remote_fs $syslog so, # in the spirit of cargo cult programming.... After=remote-fs.target Requires=remote-fs.target After=syslog.target Requires=syslog.target [Service] Type=simple #because simple don't need to fork i.e. "-f" ExecStart=/usr/sbin/list-rngd "hwrng hw_random hwrandom intel_rng i810_rng" "-f" [Install] WantedBy=basic.target ------------end---- -- System Information: Debian Release: 8.0 APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages rng-tools depends on: ii libc6 2.19-13 ii udev 215-8 rng-tools recommends no packages. rng-tools suggests no packages. -- no debconf information -- Paul Elliott 1(512)837-1096 pelli...@blackpatchpanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
signature.asc
Description: Digital signature