????

Your IP : 18.226.28.97


Current Path : /proc/self/root/proc/self/root/proc/self/root/proc/self/root/lib/kernel/install.d/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/self/root/proc/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