source: packages/utils/haveged/files/haveged.init @ 31161

Last change on this file since 31161 was 31161, checked in by florian, 5 years ago

[package] add haveged

I've checked the haveged makefile now, it only relies on librt, so the
attached patch should have no issues under any platform.

Signed-off-by: Oliver Smith <olipro@…>

File size: 275 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2012 OpenWrt.org
3
4START=98
5
6HAVEGED_THRESHOLD=1024
7HAVEGED_DCACHE=32
8HAVEGED_ICACHE=32
9
10start() {
11        service_start /sbin/haveged -w $HAVEGED_THRESHOLD -d $HAVEGED_DCACHE -i $HAVEGED_ICACHE -v 1
12}
13
14stop() {
15        service_stop /sbin/haveged
16}
Note: See TracBrowser for help on using the repository browser.