--- linux.install.old 2012-05-27 21:37:03.557626162 +0530 +++ linux.install.new 2012-05-27 21:52:57.322459174 +0530 @@ -11,6 +11,11 @@ echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux${KERNEL_NAME} + if type -p dkms >/dev/null; then + echo ">>> Running the DKMS autoinstall service..." + dkms autoinstall -k ${KERNEL_VERSION} || true + fi + # compat symlinks for the official kernels only if [ -z "${KERNEL_NAME}" -o "${KERNEL_NAME}" = "-lts" ]; then loaders="$(find /boot -name syslinux.cfg -or -name extlinux.conf -or -name grub.cfg -or -name menu.lst)" @@ -53,6 +58,11 @@ depmod ${KERNEL_VERSION} echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux${KERNEL_NAME} + + if type -p dkms >/dev/null; then + echo ">>> Running the DKMS autoinstall service..." + dkms autoinstall -k ${KERNEL_VERSION} || true + fi } post_remove() {