Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../06rngd
File: module-setup.sh
#!/bin/bash
[0] Fix | Delete
# vim: set tabstop=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80:
[1] Fix | Delete
#
[2] Fix | Delete
# Copyright (c) 2019 Red Hat, Inc.
[3] Fix | Delete
# Author: Renaud Métrich <rmetrich@redhat.com>
[4] Fix | Delete
#
[5] Fix | Delete
# This program is free software: you can redistribute it and/or modify
[6] Fix | Delete
# it under the terms of the GNU General Public License as published by
[7] Fix | Delete
# the Free Software Foundation, either version 3 of the License, or
[8] Fix | Delete
# (at your option) any later version.
[9] Fix | Delete
#
[10] Fix | Delete
# This program is distributed in the hope that it will be useful,
[11] Fix | Delete
# but WITHOUT ANY WARRANTY; without even the implied warranty of
[12] Fix | Delete
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[13] Fix | Delete
# GNU General Public License for more details.
[14] Fix | Delete
#
[15] Fix | Delete
# You should have received a copy of the GNU General Public License
[16] Fix | Delete
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[17] Fix | Delete
#
[18] Fix | Delete
[19] Fix | Delete
depends() {
[20] Fix | Delete
echo systemd
[21] Fix | Delete
return 0
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
check() {
[25] Fix | Delete
# if there's no rngd binary, no go.
[26] Fix | Delete
require_binaries rngd || return 1
[27] Fix | Delete
[28] Fix | Delete
return 0
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
install() {
[32] Fix | Delete
inst rngd
[33] Fix | Delete
inst_simple "${systemdsystemunitdir}/rngd.service"
[34] Fix | Delete
[35] Fix | Delete
if [ -r /etc/sysconfig/rngd ]; then
[36] Fix | Delete
inst_simple "${moddir}/sysconfig" "/etc/sysconfig/rngd"
[37] Fix | Delete
fi
[38] Fix | Delete
[39] Fix | Delete
# make sure dependant libs are installed too
[40] Fix | Delete
inst_libdir_file opensc-pkcs11.so
[41] Fix | Delete
[42] Fix | Delete
systemctl -q --root "$initdir" add-wants sysinit.target rngd.service
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function