AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.216.208.243


Current Path : /snap/core20/2379/usr/share/initramfs-tools/hooks/
Upload File :
Current File : //snap/core20/2379/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