* 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>
PKG_NAME:=rng-tools
PKG_VERSION:=5
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/gkernel/rng-tools/$(PKG_VERSION)/
URL:=http://sourceforge.net/projects/gkernel/
endef
+define Package/rng-tools/description
+Daemon for adding entropy to kernel entropy pool. By default it uses
+/dev/urandom as the source but the init script can be modified
+to use a hardware source like /dev/hwrng if present
+endef
+
ifdef CONFIG_USE_UCLIBC
CONFIGURE_VARS += \
LIBS="-largp"
START=98
-RNGD_INTERVAL=30
RNGD_AMOUNT=4000
RNGD_DEVICE="/dev/urandom"
+# Use /dev/urandom as source, as hardware sources like /dev/hwrng are usually not present
start() {
service_start /sbin/rngd -r $RNGD_DEVICE -W $RNGD_AMOUNT