2024-08-25 18:04:42 -05:00
|
|
|
[Trigger]
|
|
|
|
|
Operation=Install
|
|
|
|
|
Operation=Upgrade
|
|
|
|
|
Operation=Remove
|
|
|
|
|
Type=Package
|
2024-08-26 07:27:58 -05:00
|
|
|
# Uncomment the installed NVIDIA package
|
|
|
|
|
#Target=nvidia
|
|
|
|
|
Target=nvidia-open
|
|
|
|
|
#Target=nvidia-lts
|
|
|
|
|
# If running a different kernel, modify below to match
|
2024-08-25 18:04:42 -05:00
|
|
|
Target=linux
|
2024-08-26 07:27:58 -05:00
|
|
|
# Adjust line(6-9) above to match your driver, e.g. Target=nvidia-470xx-dkms
|
|
|
|
|
# Change line(11) above, if you are not using the regular kernel For example, Target=linux-lts
|
2024-08-25 18:04:42 -05:00
|
|
|
|
|
|
|
|
[Action]
|
2024-08-26 07:27:58 -05:00
|
|
|
Description=Updating NVIDIA module in initcpio
|
2024-08-25 18:04:42 -05:00
|
|
|
Depends=mkinitcpio
|
|
|
|
|
When=PostTransaction
|
|
|
|
|
NeedsTargets
|
2024-08-26 07:27:58 -05:00
|
|
|
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux*) exit 0; esac; done; /usr/bin/mkinitcpio -P'
|