mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
shellcheck found more issues than SC1074. Address most of these issues. You can check the shell code by running: ``` shellcheck -e SC1090,SC1091 -s dash hook-functions $(find * -type f \( -executable ! -name rules -o -regex '.*\.\(post\|pre\).*' -o -regex "^\(docs\|scripts\)/.*" ! -name '*.md' \)) ``` Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
26 lines
296 B
Bash
Executable File
26 lines
296 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PREREQ=""
|
|
|
|
prereqs()
|
|
{
|
|
echo "$PREREQ"
|
|
}
|
|
|
|
case $1 in
|
|
# get pre-requisites
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
# sanity check
|
|
[ -z "${blacklist?}" ] && exit 0
|
|
|
|
# write blacklist to modprobe.d
|
|
IFS=','
|
|
for b in ${blacklist}; do
|
|
echo "blacklist $b" >> /etc/modprobe.d/initramfs.conf
|
|
done
|