26 lines
383 B
Bash
Executable file
26 lines
383 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PREREQ=""
|
|
|
|
prereqs()
|
|
{
|
|
echo "$PREREQ"
|
|
}
|
|
|
|
case $1 in
|
|
# get pre-requisites
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. ${ROOTDIR}/usr/share/initramfs-tools/hook-functions
|
|
|
|
# module-init-tools
|
|
copy_exec ${ROOTDIR}/sbin/modprobe /sbin
|
|
copy_exec ${ROOTDIR}/sbin/rmmod /sbin
|
|
mkdir -p "${DESTDIR}/etc/modprobe.d"
|
|
cp -a ${ROOTDIR}/etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d/"
|
|
|
|
exit 0
|