Created
August 27, 2016 18:57
-
-
Save fommil/8415a258ac8c87bdfa16f8776b3bc2b0 to your computer and use it in GitHub Desktop.
NeuG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/[email protected] | |
[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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 [email protected] (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