You are not logged in.
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
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:
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
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)
Brianna Ghey — Rest In Power
Offline