????
Current Path : /proc/thread-self/root/lib/kernel/install.d/ |
Current File : //proc/thread-self/root/lib/kernel/install.d/40-dkms.install |
#!/bin/bash COMMAND=$1 KERNEL_VERSION=$2 case "$COMMAND" in add) if [ -f /etc/dkms/no-autoinstall ]; then echo "Automatic installation of modules has been disabled." else dkms autoinstall --kernelver $KERNEL_VERSION fi ;; remove) dkms status -k "$KERNEL_VERSION" 2>/dev/null | while IFS=",:/ " read -r name vers _ arch status; do dkms unbuild -m "$name" -v "$vers" -k "$KERNEL_VERSION" -a "$arch" done find /usr/lib/modules/$KERNEL_VERSION -type d -empty -delete ;; esac