diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:49:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 00:49:14 +0000 |
commit | 3c2d31adff62d355d29246bdbe3c43bc25b9008b (patch) | |
tree | cf28adc8f4ab5f7eec9f5e13dfd65b099acbb709 /scripts/init-top/blacklist | |
parent | Initial commit. (diff) | |
download | initramfs-tools-3c2d31adff62d355d29246bdbe3c43bc25b9008b.tar.xz initramfs-tools-3c2d31adff62d355d29246bdbe3c43bc25b9008b.zip |
Adding upstream version 0.133+deb10u1.upstream/0.133+deb10u1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/init-top/blacklist')
-rwxr-xr-x | scripts/init-top/blacklist | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/init-top/blacklist b/scripts/init-top/blacklist new file mode 100755 index 0000000..d860603 --- /dev/null +++ b/scripts/init-top/blacklist @@ -0,0 +1,25 @@ +#!/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 |