Created
November 23, 2022 15:58
-
-
Save NicolaiVdS/3008dee19399845de96fb1f3753c1062 to your computer and use it in GitHub Desktop.
This file contains 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