fix(systemd-modules-load): shellcheck for modules.d/01systemd-modules-load

master
Harald Hoyer 2021-03-26 10:29:07 +01:00 committed by Harald Hoyer
parent c94bd1cd82
commit 6bc9942b41
2 changed files with 7 additions and 8 deletions

View File

@ -6,7 +6,7 @@
check() { check() {


# If the binary(s) requirements are not fulfilled the module can't be installed # If the binary(s) requirements are not fulfilled the module can't be installed
require_binaries $systemdutildir/systemd-modules-load || return 1 require_binaries "$systemdutildir"/systemd-modules-load || return 1


# Return 255 to only include the module, if another module requires it. # Return 255 to only include the module, if another module requires it.
return 255 return 255
@ -27,20 +27,19 @@ depends() {
install() { install() {


# Create systemd-modules-load related directories. # Create systemd-modules-load related directories.
inst_dir $modulesload inst_dir "$modulesload"
inst_dir $modulesloadconfdir inst_dir "$modulesloadconfdir"


# Install related files for systemd-modules-load # Install related files for systemd-modules-load
inst_multiple -o \ inst_multiple -o \
$systemdsystemunitdir/systemd-modules-load.service \ "$systemdsystemunitdir"/systemd-modules-load.service \
$systemdutildir/systemd-modules-load "$systemdutildir"/systemd-modules-load


# Install local user configurations if host only is enabled.. # Install local user configurations if host only is enabled..
if [[ $hostonly ]]; then if [[ $hostonly ]]; then
inst_multiple -H -o \ inst_multiple -H -o \
$systemdsystemconfdir/systemd-modules-load.service \ "$systemdsystemconfdir"/systemd-modules-load.service \
$systemdsystemconfdir/systemd-systemd-modules-load.d/*.conf \ "$systemdsystemconfdir"/systemd-systemd-modules-load.d/*.conf
${NULL}
fi fi


# Enable the systemd type service unit for systemd-modules-load. # Enable the systemd type service unit for systemd-modules-load.