diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 05:42:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-03 05:42:59 +0000 |
commit | c45bd7dca7394d3a25f5bbf416f3b75c50759190 (patch) | |
tree | f7dbbfcc2f6b787eea456d1f1e28525ca2ceb9ba /scripts/init-top/blacklist | |
parent | Initial commit. (diff) | |
download | initramfs-tools-c45bd7dca7394d3a25f5bbf416f3b75c50759190.tar.xz initramfs-tools-c45bd7dca7394d3a25f5bbf416f3b75c50759190.zip |
Adding upstream version 0.143.upstream/0.143upstream
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 |