diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-12-31 17:24:09 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-12-31 17:24:09 +0800 |
| commit | 60cbcfb7a5d57134b968e22a040765056a061cb4 (patch) | |
| tree | 41b193c888a518a0927fd0c0ed054c7170b20cd1 /etc/pacman.d/hooks | |
| parent | 3ec638f8b14433527f07649743b5ec97ae68fd12 (diff) | |
update: etc
Diffstat (limited to 'etc/pacman.d/hooks')
| -rwxr-xr-x | etc/pacman.d/hooks/blackarch-key.hook | 12 | ||||
| -rw-r--r-- | etc/pacman.d/hooks/nvidia.hook | 19 |
2 files changed, 31 insertions, 0 deletions
diff --git a/etc/pacman.d/hooks/blackarch-key.hook b/etc/pacman.d/hooks/blackarch-key.hook new file mode 100755 index 00000000..36dd4e68 --- /dev/null +++ b/etc/pacman.d/hooks/blackarch-key.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Upgrade +Type = Package +Target = archlinux-keyring + +[Action] +Description = Reinstate Black Arch keyring +Depends = pacman +Depends = blackarch-keyring +When = PostTransaction +Exec = /usr/bin/pacman-key --populate blackarch + diff --git a/etc/pacman.d/hooks/nvidia.hook b/etc/pacman.d/hooks/nvidia.hook new file mode 100644 index 00000000..565974b5 --- /dev/null +++ b/etc/pacman.d/hooks/nvidia.hook @@ -0,0 +1,19 @@ +#[Trigger] +#Operation=Install +#Operation=Upgrade +#Operation=Remove +#Type=Package +# Uncomment the installed NVIDIA package +#Target=nvidia +#Target=nvidia-open +#Target=nvidia-lts +# If running a different kernel, modify below to match +#Target=linux + +#[Action] +#Description=Updating 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' + |
