void-packages/srcpkgs/initramfs-tools/files/hooks/module-init-tools

27 lines
383 B
Text
Raw Normal View History

#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
2011-10-17 16:09:15 +00:00
. ${ROOTDIR}/usr/share/initramfs-tools/hook-functions
# module-init-tools
2011-10-17 16:09:15 +00:00
copy_exec ${ROOTDIR}/sbin/modprobe /sbin
copy_exec ${ROOTDIR}/sbin/rmmod /sbin
mkdir -p "${DESTDIR}/etc/modprobe.d"
2011-10-17 16:09:15 +00:00
cp -a ${ROOTDIR}/etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d/"
exit 0