Add hooks

This commit is contained in:
Eshan Roy (Eshanized)
2024-04-16 23:14:02 +05:30
parent 84ae5d4cfa
commit 8910a4b226
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Updating systemd-boot
When = PostTransaction
Exec = /usr/bin/systemctl restart systemd-boot-update.service

View File

@@ -0,0 +1,15 @@
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Path
Target = usr/src/*/dkms.conf
Target = usr/lib/modules/*/build/include/
Target = usr/lib/modules/*/modules.alias
Target = usr/lib/modules/*/vmlinuz
Target = usr/lib/modules/*/extramodules/*
[Action]
Description = Check for NVIDIA Config
When = PostTransaction
Exec = /usr/local/bin/snigdhaos-nvidia-dkms-check