Created
March 5, 2020 22:12
-
-
Save yavorski/fe06440d9d9b9e220019e37ab414144c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Trigger] | |
Operation=Install | |
Operation=Upgrade | |
Operation=Remove | |
Type=Package | |
Target=nvidia | |
Target=linux | |
# Change the linux part above and in the Exec line if a different kernel is used | |
[Action] | |
Description=Update Nvidia module in initcpio | |
Depends=mkinitcpio | |
When=PostTransaction | |
NeedsTargets | |
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment