From efdaaa6775fb72e18d5b402d4fd9a0ad7ffe4502 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 7 Jun 2023 21:42:46 +0200 Subject: [PATCH] remove unused hooks --- configs/pacman-hooks/backup-modules-post.hook | 13 ------------- configs/pacman-hooks/backup-modules-pre.hook | 13 ------------- configs/pacman-hooks/display-manager.hook | 9 --------- configs/pacman-hooks/display-manager_pre.hook | 9 --------- configs/pacman-hooks/nvidia.hook | 16 ---------------- configs/pacman-hooks/pacmanconf.hook | 10 ---------- 6 files changed, 70 deletions(-) delete mode 100755 configs/pacman-hooks/backup-modules-post.hook delete mode 100755 configs/pacman-hooks/backup-modules-pre.hook delete mode 100755 configs/pacman-hooks/display-manager.hook delete mode 100755 configs/pacman-hooks/display-manager_pre.hook delete mode 100755 configs/pacman-hooks/nvidia.hook delete mode 100755 configs/pacman-hooks/pacmanconf.hook 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"