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 Jul 24, 2023
1 parent 33a66ed commit b060111
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 ]; then
inst_simple "${moddir}/sysconfig" "/etc/sysconfig/rngd"
fi

# make sure dependant 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 b060111

Please sign in to comment.