From d04bef25c4de45988ce36c27be259231b6975f3d Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" Date: Thu, 7 Mar 2024 16:29:51 +0530 Subject: [PATCH] =?UTF-8?q?@eshanized:=20push=20via=20push.sh=20?= =?UTF-8?q?=F0=9F=8E=89=20!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/pacman.d/hooks/lsb-release.hook | 10 ++++++++++ etc/pacman.d/hooks/os-release.hook | 10 ++++++++++ etc/pacman.d/hooks/reboot-important-updates.hook | 13 +++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 etc/pacman.d/hooks/lsb-release.hook create mode 100644 etc/pacman.d/hooks/os-release.hook create mode 100644 etc/pacman.d/hooks/reboot-important-updates.hook diff --git a/etc/pacman.d/hooks/lsb-release.hook b/etc/pacman.d/hooks/lsb-release.hook new file mode 100644 index 0000000..7927f4f --- /dev/null +++ b/etc/pacman.d/hooks/lsb-release.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = lsb-release + +[Action] +Description = Add Snigdha OS specific config +When = PostTransaction +Exec = /bin/sh -c "/usr/local/bin/snigdhaos-lsb-release" diff --git a/etc/pacman.d/hooks/os-release.hook b/etc/pacman.d/hooks/os-release.hook new file mode 100644 index 0000000..1076fd9 --- /dev/null +++ b/etc/pacman.d/hooks/os-release.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = filesystem + +[Action] +Description = Add Snigdha OS specific config +When = PostTransaction +Exec = /bin/sh -c "/usr/local/bin/snigdhaos-os-release" diff --git a/etc/pacman.d/hooks/reboot-important-updates.hook b/etc/pacman.d/hooks/reboot-important-updates.hook new file mode 100644 index 0000000..3c19fdc --- /dev/null +++ b/etc/pacman.d/hooks/reboot-important-updates.hook @@ -0,0 +1,13 @@ +[Trigger] +Operation = Upgrade +Operation = Install +Operation = Remove +Type = Package +Target = linux* +Target = systemd* +Target = nvidia* + +[Action] +Description = #### Important Linux packages have changed. Reboot is recommended. #### +When = PostTransaction +Exec = /usr/bin/true