void-packages/templates/initramfs-tools/files/hooks/module_init_tools
Juan RP 81987c3df3 initramfs-tools: update to 0.93.3.
* Add radeon/i915 drivers if MODULES=most, for KMS.
* Remove blkid, busybox, klibc and module-init-tools stuff into
  its own hooks.
* Fix init-premount/blacklist script, all files in /etc/modprobe.d
  should have the .conf extension.

--HG--
extra : convert_revision : eb69e4c6e1097dfcc8ba937a96ec6e83fdb2f922
2009-10-18 07:12:56 +02:00

29 lines
390 B
Bash
Executable file

#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
copy_exec /sbin/modprobe /sbin
copy_exec /sbin/depmod /sbin
copy_exec /sbin/rmmod /sbin
if [ -d /etc/modprobe.d ]; then
mkdir -p "${DESTDIR}/etc/modprobe.d"
cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d/"
fi
exit 0