2009-10-09 03:11:09 +02:00
|
|
|
#!/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
|
2009-10-18 07:12:56 +02:00
|
|
|
echo "blacklist $b" >> /etc/modprobe.d/initramfs.conf
|
2009-10-09 03:11:09 +02:00
|
|
|
done
|