vp-build/templates/initramfs-tools/files/scripts/init-premount/blacklist
Juan RP 7e91eb4db8 initramfs-tools: add sources and use them.
* Add source files directly to avoid recreating patches and
  patches lots of times with no gain.
* Add du and expr busybox symlinks at init time.

Bump revision.

--HG--
extra : convert_revision : 4928750b0110f43cde577f6068e79bd0675c64cf
2009-10-09 03:11:09 +02:00

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