Skip to content

Instantly share code, notes, and snippets.

@fommil
Created August 27, 2016 18:57
Show Gist options
  • Save fommil/8415a258ac8c87bdfa16f8776b3bc2b0 to your computer and use it in GitHub Desktop.
Save fommil/8415a258ac8c87bdfa16f8776b3bc2b0 to your computer and use it in GitHub Desktop.
NeuG
# /etc/systemd/system/rngd@.service
[Unit]
Description=rngd service on %I
[Service]
Type=simple
ExecStartPre=/bin/stty -F /dev/%I raw -echo -parenb
ExecStart=/usr/sbin/rngd -f --fill-watermark=90% --rng-device=/dev/%I
# this goes in /etc/udev/rules.d/90-neug.rules
# http://www.gniibe.org/FST-01/q_and_a/neug-standalone-device.html
# don't forget to create the rngd@.service (no need to enable)
KERNEL=="ttyACM[0-9]*", SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="234b", ATTRS{idProduct}=="0001", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd@%k.service"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment