summarylogtreecommitdiffstats
path: root/patch-kernel-pacman-hook.install
diff options
context:
space:
mode:
authorDaniel Kirchner2020-02-16 00:49:43 +0100
committerDaniel Kirchner2020-02-16 00:49:43 +0100
commiteaced730fda1d8c79457cfa2d4bf8af9f3af94ae (patch)
tree855c86f52da44665206ab701cfb9e3a06fc7d8a9 /patch-kernel-pacman-hook.install
downloadaur-patch-kernel-pacman-hook.tar.gz
Initial commit
Diffstat (limited to 'patch-kernel-pacman-hook.install')
-rw-r--r--patch-kernel-pacman-hook.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/patch-kernel-pacman-hook.install b/patch-kernel-pacman-hook.install
new file mode 100644
index 000000000000..97d0105e29eb
--- /dev/null
+++ b/patch-kernel-pacman-hook.install
@@ -0,0 +1,8 @@
+post_install() {
+ if [ -f "/etc/pacman.d/patch-kernel.conf.pacsave" ]; then
+ mv -v "/etc/pacman.d/patch-kernel.conf.pacsave" "/etc/pacman.d/patch-kernel.conf"
+ else
+ echo "To enable automatic kernel patching you have to customize /etc/pacman.d/patch-kernel.conf."
+ echo -e "\033[0;33mpatch-kernel-pacman-hook is highly experimental, use at your own risk.\033[0m"
+ fi
+}