Skip to content

Instantly share code, notes, and snippets.

@NicolaiVdS
Created November 23, 2022 15:58
Show Gist options
  • Save NicolaiVdS/3008dee19399845de96fb1f3753c1062 to your computer and use it in GitHub Desktop.
Save NicolaiVdS/3008dee19399845de96fb1f3753c1062 to your computer and use it in GitHub Desktop.
[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