remove unused hooks

This commit is contained in:
user 2023-06-07 21:42:46 +02:00
parent cb5050ddfd
commit efdaaa6775
6 changed files with 0 additions and 70 deletions

View file

@ -1,13 +0,0 @@
[Trigger]
Operation = Remove
Operation = Upgrade
Type = Package
Target = linux
Target = linux-hardened
Target = linux-mainline
[Action]
Depends = coreutils
Depends = bash
When = PostTransaction
Exec = /usr/bin/bash -c '[[ -d /usr/lib/modules/$(uname -r) ]] || ln -s /tmp/$(uname -r) /usr/lib/modules/$(uname -r)'

View file

@ -1,13 +0,0 @@
[Trigger]
Operation = Upgrade
Operation = Remove
Type = Package
Target = linux
Target = linux-hardened
Target = linux-mainline
[Action]
Depends = coreutils
Depends = bash
When = PreTransaction
Exec = /usr/bin/bash -c 'find /usr/lib/modules -maxdepth 1 -type l -delete; cp -a /usr/lib/modules/$(uname -r) /tmp 2>/dev/null || :'

View file

@ -1,9 +0,0 @@
[Trigger]
Operation = Upgrade
Type = Package
Target = sddm
[Action]
Description = Updating sddm display-manager config after updating
When = PostTransaction
Exec = /bin/bash -c "cp /tmp/sddm.conf /etc/sddm.conf && cp /tmp/sddm.conf /usr/lib/sddm/sddm.conf.d/default.conf && cp /opt/deadc0de-os-code/display-manager.service /etc/systemd/system/display-manager.service"

View file

@ -1,9 +0,0 @@
[Trigger]
Operation = Upgrade
Type = Package
Target = sddm
[Action]
Description = Save sddm display-manager config befor updating
When = PreTransaction
Exec = /bin/bash -c "cp /usr/lib/sddm/sddm.conf.d/default.conf /tmp/sddm.conf"

View file

@ -1,16 +0,0 @@
[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'

View file

@ -1,10 +0,0 @@
[Trigger]
Operation = Upgrade
Type = Package
Target = pacman
Target = pacman-mirrorlist
[Action]
Description = Updating pacman-mirrorlist and the pacman config after updating
When = PostTransaction
Exec = /bin/bash -c "cp /opt/SpectreOS/%VERSION% /etc/pacman.conf"