diff --git a/configs/pacman-hooks/backup-modules-post.hook b/configs/pacman-hooks/backup-modules-post.hook deleted file mode 100755 index 66f9443..0000000 --- a/configs/pacman-hooks/backup-modules-post.hook +++ /dev/null @@ -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)' diff --git a/configs/pacman-hooks/backup-modules-pre.hook b/configs/pacman-hooks/backup-modules-pre.hook deleted file mode 100755 index 372d5f2..0000000 --- a/configs/pacman-hooks/backup-modules-pre.hook +++ /dev/null @@ -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 || :' diff --git a/configs/pacman-hooks/display-manager.hook b/configs/pacman-hooks/display-manager.hook deleted file mode 100755 index 8eae67c..0000000 --- a/configs/pacman-hooks/display-manager.hook +++ /dev/null @@ -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" diff --git a/configs/pacman-hooks/display-manager_pre.hook b/configs/pacman-hooks/display-manager_pre.hook deleted file mode 100755 index 66b6657..0000000 --- a/configs/pacman-hooks/display-manager_pre.hook +++ /dev/null @@ -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" diff --git a/configs/pacman-hooks/nvidia.hook b/configs/pacman-hooks/nvidia.hook deleted file mode 100755 index 42780ee..0000000 --- a/configs/pacman-hooks/nvidia.hook +++ /dev/null @@ -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' diff --git a/configs/pacman-hooks/pacmanconf.hook b/configs/pacman-hooks/pacmanconf.hook deleted file mode 100755 index f0526d4..0000000 --- a/configs/pacman-hooks/pacmanconf.hook +++ /dev/null @@ -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"