This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
haveged: convert to procd
Convert haveged init script to use procd Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
lilik-openwrt-22.03
Hannu Nyman
5 years ago
parent
8ded4a3b62
commit
4f717a6f65
2 changed files
with
9 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
utils/haveged/Makefile
+8
-7
utils/haveged/files/haveged.init
+ 1
- 1
utils/haveged/Makefile
View File
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME
:=
haveged
PKG_VERSION
:=
1.9.8
PKG_RELEASE
:=
1
PKG_RELEASE
:=
2
PKG_SOURCE
:=
$(
PKG_NAME
)
-
$(
PKG_VERSION
)
.tar.gz
PKG_SOURCE_URL
:=
https://codeload.github.com/jirka-h/haveged/tar.gz/v
$(
PKG_VERSION
)
?
+ 8
- 7
utils/haveged/files/haveged.init
View File
@ -1,16 +1,17 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2012 OpenWrt.org
START=13
USE_PROCD=1
HAVEGED_THRESHOLD=1024
HAVEGED_DCACHE=32
HAVEGED_ICACHE=32
start() {
service_start /usr/sbin/haveged -w $HAVEGED_THRESHOLD -d $HAVEGED_DCACHE -i $HAVEGED_ICACHE -v 1
}
stop() {
service_stop /usr/sbin/haveged
start_service() {
procd_open_instance
procd_set_param command /usr/sbin/haveged
procd_append_param command -F -w $HAVEGED_THRESHOLD -d $HAVEGED_DCACHE -i $HAVEGED_ICACHE -v 1
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
Write
Preview
Loading…
Cancel
Save