Commit Graph

6 Commits

Author SHA1 Message Date
Philip Prindeville 901ef617c7 rng-tools: start rngd early enough to actually be useful
lighttpd starts at priority 50, but promptly calls getrandom() on
initialization (li_rand_reseed() and li_rand_device_bytes() from
server_init()). If /dev/urandom (which getrandom() uses by default)
doesn't have sufficient entropy, this will block.

Since Openwrt runs the startup scripts serially, this can block
initialization indefinitely.  I've seen 15-20 minutes typically.

Seeding the pool early on can quickly built sufficient entropy to
complete booting without blocking.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-02-02 22:52:50 -07:00
Stefan Hellermann dc445cc242 rng-tools: Fixup Makefile and initscript
- typo in path of uci-defaults scripts
- fix init script when there is no rngd config
- convert init script to procd

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
2016-11-10 10:33:22 +01:00
Nathaniel Wesley Filardo bce6d283c1 rng-tools: uci-fy, default to doing nothing
Enabling the default configuration will pipe /dev/urandom back into
/dev/random ala the current package behavior.  Because this amounts to
disabling the in-kernel entropy estimation, default disabled.

While here, uci-paramaterize the high watermark.
While here, add a pre-command hook for real RNGs that need 'stty raw'
or other such hooks.  (e.g. the TrueRNG devices)

As offered in github openwrt/packages#3422, take over maintainership.

See github openwrt/packages#3142.

Signed-off-by: Nathaniel Wesley Filardo <nwfilardo@gmail.com>
2016-10-31 13:17:57 -04:00
Hannu Nyman e77de68fbe rng-tools: Add description, remove unused parameter
* Add description to both Makefile and init script that
  mentions the default of /dev/urandom as the entropy source.
* Remove the deprecated interval parameter from init script.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-09-22 14:25:34 +03:00
Hannu Nyman 0b85e7e0bf rng-tools: upgrade to version 5
Edit init script to match current options.
Update copyright year.
Simplify download location.
Add myself as maintainer.

signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-07-23 23:07:19 +03:00
Hannu Nyman c710bc989b rng-tools: import from oldpackages
signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-07-23 23:06:58 +03:00