diff options
Diffstat (limited to 'debian/kmod.initramfs-hook')
-rw-r--r-- | debian/kmod.initramfs-hook | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/kmod.initramfs-hook b/debian/kmod.initramfs-hook new file mode 100644 index 0000000..888b0d3 --- /dev/null +++ b/debian/kmod.initramfs-hook @@ -0,0 +1,16 @@ +#!/bin/sh -e +# Copy the compatibility symlinks until initramfs-tools will be converted +# to use the kmod program. + +if [ "$1" = "prereqs" ]; then exit 0; fi + +. /usr/share/initramfs-tools/hook-functions + +copy_exec /usr/bin/kmod +cp -aZ /usr/sbin/modprobe /usr/sbin/rmmod "$DESTDIR/usr/sbin/" + +mkdir -p "$DESTDIR/usr/lib/modprobe.d/" +if [ "$(echo /usr/lib/modprobe.d/*)" != "/usr/lib/modprobe.d/*" ]; then + cp -aZ /usr/lib/modprobe.d/* "$DESTDIR/usr/lib/modprobe.d/" +fi + |