You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
316 B

#!/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
}