mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
* 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>
17 lines
316 B
Bash
17 lines
316 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2011-2014 OpenWrt.org
|
|
|
|
START=98
|
|
|
|
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
|
|
}
|
|
|
|
stop() {
|
|
service_stop /sbin/rngd
|
|
}
|