26 lines
290 B
Bash
Executable File
26 lines
290 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
|
|
done
|