The officially official Devuan Forum!

You are not logged in.

#1 2020-11-28 19:21:22

Eaglet
Member
From: Россия
Registered: 2018-06-24
Posts: 29  
Website

I solve issue with jitterentropy-rngd package

Hello, comrades!

I solve issue with use jitterentropy-rngd package after installation. Developers, Please add this code to script /etc/init.d/jitterentropy-rngd for solve current issue with this service:

if  [ ! $(lsmod | grep jitterentropy_rng) ]; then
        modprobe jitterentropy-rng
        echo "Sucess load jitterentropy_rng module..."
        if  [ ! $(cat /etc/modules | grep jitterentropy_rng) ]; then
                echo "jitterentropy_rng" >> /etc/modules
                echo "Sucess add module jitterentropy_rng for autoload by start system..."
        fi
fi

do_restart()
{
start-stop-daemon --stop --quiet --retry=TERM/2/KILL/5 --pidfile $PIDFILE --exec $DAEMON
start-stop-daemon --start --quiet --retry=TERM/2/KILL/5 --pidfile $PIDFILE --exec $DAEMON
}
do_start()
{
start-stop-daemon --start --quiet --retry=TERM/2/KILL/5 --pidfile $PIDFILE --exec $DAEMON
}
do_stop()
{
start-stop-daemon --stop --quiet --retry=TERM/2/KILL/5 --pidfile $PIDFILE --exec $DAEMON
}

Please repack installation package jitterentropy-rngd with this code!

Offline

#2 2020-11-28 19:54:11

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,283  
Website

Re: I solve issue with jitterentropy-rngd package

Eaglet wrote:

Developers, Please add this code

The package is drawn from Debian's repositories (using amprolla) so if you want the init script to be modified then you will have to ask the Debian package maintainer instead.

And your modifications have some issues:

Eaglet wrote:
if  [ ! $(lsmod | grep jitterentropy_rng) ]; then

No need to use the [ test and no need for lsmod:

if ! grep -q jitterentropy_rng /proc/modules; then
Eaglet wrote:
        if  [ ! $(cat /etc/modules | grep jitterentropy_rng) ]; then

Useless use of cat and again, no need for [:

if ! grep -q jitterentropy_rng /etc/modules; then

HTH

EDIT: on reflection I really don't think an init script should be changing system configuration files. Just the modprobe should be sufficient.

Last edited by Head_on_a_Stick (2020-11-29 08:36:26)


Black Lives Matter

Offline

#3 2020-11-29 13:50:21

Eaglet
Member
From: Россия
Registered: 2018-06-24
Posts: 29  
Website

Re: I solve issue with jitterentropy-rngd package

Ok, comrade!

I send my and your information to Debian bug report.

Thank you for your comment!

Offline

Board footer