<div dir="ltr">The current .deb for OneRNG uses udev's RUN+ function to start the script that runs rngd, but current udev incarnations kill all spawned pids on exit. So the current script hacks by invoking itself a second time using at(1).<div>
<br></div><div>There should be a better way to do this; I foundĀ <a href="http://blog.fraggod.net/2012/06/16/proper-ish-way-to-start-long-running-systemd-service-on-udev-event-device-hotplug.html">http://blog.fraggod.net/2012/06/16/proper-ish-way-to-start-long-running-systemd-service-on-udev-event-device-hotplug.html</a> which might offer something.</div>
<div><br></div><div>However, I'd suggest that the 'better' way it to just make rng-tools a package prerequisite, then edit /etc/default/rng-tools and change HRNGDEVICE to point to the new device, then restart rngd. On removal, we could revert the change.</div>
<div><br></div><div>Alternatively, force the OneRNG to have a more singular /dev filename, and leave /etc/default/rng-tools pointing to it; sadly then if the OneRNG is removed the rngd becomes useless :-(</div><div><br></div>
<div>Any suggestions?</div><div><br></div><div>-jim</div></div>