Current Dir: /snap/core22/2955/usr/share/initramfs-tools/hooks/

[FILE] dmsetup [ edit | delete | rename ]
[FILE] kmod [ edit | delete | rename ]
[FILE] udev [ edit | delete | rename ]
[FILE] zz-dhclient [ edit | delete | rename ]

Viewing: /snap/core22/2955/usr/share/initramfs-tools/hooks/kmod

#!/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 /bin/kmod
cp -aZ /sbin/modprobe /sbin/rmmod "$DESTDIR/sbin/"

mkdir -p "$DESTDIR/lib/modprobe.d/"
if [ "$(echo /lib/modprobe.d/*)" != "/lib/modprobe.d/*" ]; then
  cp -aZ /lib/modprobe.d/* "$DESTDIR/lib/modprobe.d/"
fi


Upload File: