summarylogtreecommitdiffstats
path: root/patch-kernel-pacman-hook.install
diff options
context:
space:
mode:
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
+}