diff options
author | Tony Lambiris | 2016-12-17 17:55:00 -0500 |
---|---|---|
committer | Tony Lambiris | 2016-12-17 18:00:00 -0500 |
commit | d48165352e95535b798852f9afced7371549ee23 (patch) | |
tree | d2a7b2f7101503424d9eeac79b75072eccb33b06 /linux-macbook.install | |
parent | 854f450e06d8bf89aa58596ffaf1f621f3f7b679 (diff) | |
download | aur-d48165352e95535b798852f9afced7371549ee23.tar.gz |
Sync with core/linux, add service file
Diffstat (limited to 'linux-macbook.install')
-rw-r--r-- | linux-macbook.install | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/linux-macbook.install b/linux-macbook.install index 818e0fe587d8..094b55c80175 100644 --- a/linux-macbook.install +++ b/linux-macbook.install @@ -1,9 +1,3 @@ -# arg 1: the new package version -# arg 2: the old package version - -KERNEL_NAME=-macbook-pro -KERNEL_VERSION= - display_requirements () { cat <<-EOF @@ -14,6 +8,9 @@ cat <<-EOF in /etc/default/grub and then ran the following command as root: grub-mkconfig -o /boot/grub/grub.cfg + Optionally, include the kernel boot option processor.ignore_ppc=1 + to allow frequency changing on battery power. + Enable the macbook-wakeup service for suspend/resume on LID events: systemctl enable --now macbook-wakeup.service @@ -23,9 +20,7 @@ EOF 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} + depmod %KERNVER% display_requirements } @@ -37,9 +32,7 @@ post_upgrade() { # 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} + depmod %KERNVER% if [ $(vercmp $2 3.13) -lt 0 ]; then echo ">>> WARNING: AT keyboard support is no longer built into the kernel." @@ -52,6 +45,6 @@ post_upgrade() { post_remove() { # also remove the compat symlinks - rm -f boot/initramfs-linux${KERNEL_NAME}.img - rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img + rm -f boot/initramfs-%PKGBASE%.img + rm -f boot/initramfs-%PKGBASE%-fallback.img } |