--- linux.install 2012-05-26 11:45:19.129770761 -0400 +++ linux.install 2012-05-26 11:47:22.188259138 -0400 @@ -10,6 +10,13 @@ depmod ${KERNEL_VERSION} echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux${KERNEL_NAME} + + pacman -Q dkms &>/dev/null + hasdkms=$? + if [ $hasdkms -eq 0 ]; then + echo ">>> Running the DKMS autoinstall service..." + dkms autoinstall -k ${KERNEL_VERSION} + fi # compat symlinks for the official kernels only if [ -z "${KERNEL_NAME}" -o "${KERNEL_NAME}" = "-lts" ]; then @@ -53,6 +60,12 @@ depmod ${KERNEL_VERSION} echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." mkinitcpio -p linux${KERNEL_NAME} + pacman -Q dkms &>/dev/null + hasdkms=$? + if [ $hasdkms -eq 0 ]; then + echo ">>> Running the DKMS autoinstall service..." + dkms autoinstall -k ${KERNEL_VERSION} + fi } post_remove() {