nico 61fc72d310 packages/rng-tools: use new service functions
git-svn-id: svn://svn.openwrt.org/openwrt/packages@28917 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-09 23:43:45 +00:00

17 lines
256 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2011 OpenWrt.org
START=98
RNGD_INTERVAL=30
RNGD_AMOUNT=4000
RNGD_DEVICE="/dev/urandom"
start() {
service_start /sbin/rngd -r $RNGD_DEVICE -W $RNGD_AMOUNT -t $RNGD_INTERVAL
}
stop() {
service_stop /sbin/rngd
}