mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-21 12:04:57 +02:00
@eshanized: push via push.sh!!!
This commit is contained in:
11
etc/pacman.d/hooks/amd-ucode.hook
Normal file
11
etc/pacman.d/hooks/amd-ucode.hook
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Operation = Remove
|
||||||
|
Type = Package
|
||||||
|
Target = amd-ucode
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Pacman hook to keep an up-to-date grub
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /bin/sh -c "grub-mkconfig -o /boot/grub/grub.cfg"
|
11
etc/pacman.d/hooks/intel-ucode.hook
Normal file
11
etc/pacman.d/hooks/intel-ucode.hook
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Operation = Remove
|
||||||
|
Type = Package
|
||||||
|
Target = intel-ucode
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Pacman hook to keep an up-to-date grub
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /bin/sh -c "grub-mkconfig -o /boot/grub/grub.cfg"
|
19
etc/pacman.d/hooks/nvidia.hook
Normal file
19
etc/pacman.d/hooks/nvidia.hook
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation=Install
|
||||||
|
Operation=Upgrade
|
||||||
|
Operation=Remove
|
||||||
|
Type=Package
|
||||||
|
Target=nvidia
|
||||||
|
Target=nvidia-lts
|
||||||
|
Target=nvidia-dkms
|
||||||
|
Target=nvidia-beta
|
||||||
|
Target=nvidia-340xx
|
||||||
|
Target=nvidia-390xx
|
||||||
|
Target=dkms
|
||||||
|
|
||||||
|
[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'
|
Reference in New Issue
Block a user