diff options
author | sirlucjan | 2015-06-08 17:20:12 +0200 |
---|---|---|
committer | sirlucjan | 2015-06-08 17:20:12 +0200 |
commit | 33cd2ad8100dd93c59ad175ff51d55df79ed70fa (patch) | |
tree | 4aa9cdf63a8d82b73519379f42d096297e8e7a40 /linux-bfq.install | |
download | aur-33cd2ad8100dd93c59ad175ff51d55df79ed70fa.tar.gz |
4.0.5
Diffstat (limited to 'linux-bfq.install')
-rw-r--r-- | linux-bfq.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/linux-bfq.install b/linux-bfq.install new file mode 100644 index 000000000000..a3d4230addaf --- /dev/null +++ b/linux-bfq.install @@ -0,0 +1,27 @@ +KERNEL_NAME=-bfq +KERNEL_VERSION= + +post_install () { + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux${KERNEL_NAME} +} + +post_upgrade() { + if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then + echo "WARNING: /boot appears to be a separate partition but is not mounted." + fi + # updating module dependencies + echo ">>> Updating module dependencies. Please wait ..." + depmod ${KERNEL_VERSION} + echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." + mkinitcpio -p linux${KERNEL_NAME} +} + +post_remove() { + # also remove the compat symlinks + rm -f boot/initramfs-linux${KERNEL_NAME}.img + rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img +} |