Skip to content

Instantly share code, notes, and snippets.

@yavorski
Created March 5, 2020 22:12
Show Gist options
  • Save yavorski/fe06440d9d9b9e220019e37ab414144c to your computer and use it in GitHub Desktop.
Save yavorski/fe06440d9d9b9e220019e37ab414144c 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