From 1ef38f45d982beb46b2df6d3582ad0bc2b0007ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 11 Mar 2020 11:17:33 +0100 Subject: [PATCH] haveged: move init script from 13 to 01 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is intended as a match with standard urngd. They serve same purpose and urngd starts as first with 00. Starting haveged later can create issues if you replace urngd with it. The example problem is if uci-defaults script decides to generate certificate. Haveged can supply entropy but it is started later and to mitigate this urngd would still have to be installed. This means that haveget can't serve as replacement without moving it to match start order of urngd. Signed-off-by: Karel Kočí --- utils/haveged/Makefile | 2 +- utils/haveged/files/haveged.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/haveged/Makefile b/utils/haveged/Makefile index 2409c92f1..b53e8585d 100644 --- a/utils/haveged/Makefile +++ b/utils/haveged/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=haveged PKG_VERSION:=1.9.8 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/jirka-h/haveged/tar.gz/v$(PKG_VERSION)? diff --git a/utils/haveged/files/haveged.init b/utils/haveged/files/haveged.init index c0b1a7ffc..da3a55d6d 100644 --- a/utils/haveged/files/haveged.init +++ b/utils/haveged/files/haveged.init @@ -1,6 +1,6 @@ #!/bin/sh /etc/rc.common -START=13 +START=01 USE_PROCD=1 HAVEGED_THRESHOLD=1024