Skip to content

Commit

Permalink
fix(rngd): install system service file
Browse files Browse the repository at this point in the history
as there's no reason to keep a copy; there shouldn't be any modifications.

In case there are args stored in a separate file (Fedora and alike),
it needs to be supplied too, but without the option to change the user.
  • Loading branch information
pvalena committed May 16, 2024
1 parent 0b65ac2 commit 9df3cb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 6 additions & 1 deletion modules.d/06rngd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ depends() {

install() {
inst rngd
inst_simple "${moddir}/rngd.service" "${systemdsystemunitdir}/rngd.service"
inst_simple "${systemdsystemunitdir}/rngd.service"

if [ -r /etc/sysconfig/rngd ]; then
inst_simple "${moddir}/sysconfig" "/etc/sysconfig/rngd"
fi

# make sure dependent libs are installed too
inst_libdir_file opensc-pkcs11.so

Expand Down
8 changes: 0 additions & 8 deletions modules.d/06rngd/rngd.service

This file was deleted.

1 change: 1 addition & 0 deletions modules.d/06rngd/sysconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RNGD_ARGS="-x pkcs11 -x nist"

0 comments on commit 9df3cb5

Please sign in to comment.