Skip to content

Instantly share code, notes, and snippets.

@captainpete
Last active October 16, 2017 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save captainpete/b5b6f2d19abae2e88f14 to your computer and use it in GitHub Desktop.
Save captainpete/b5b6f2d19abae2e88f14 to your computer and use it in GitHub Desktop.
Infinite Noise Gentoo Init Script (/etc/init.d/infnoise)
#!/sbin/openrc-run
description="infnoise - Feed entropy pool using the Infinite Noise TRNG"
pidfile="/var/run/infnoise.pid"
command="/usr/local/sbin/infnoise"
command_args="--dev-random"
start_stop_daemon_args="--make-pidfile --background"
depend() {
before urandom
provide random
}
@captainpete
Copy link
Author

Updated for openrc-run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment