summarylogtreecommitdiffstats
path: root/mkinitcpio-wireguard.install
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitcpio-wireguard.install')
-rw-r--r--mkinitcpio-wireguard.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/mkinitcpio-wireguard.install b/mkinitcpio-wireguard.install
new file mode 100644
index 00000000000..aedd9a6616f
--- /dev/null
+++ b/mkinitcpio-wireguard.install
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+post_install() {
+ echo ">"
+ echo "> Now add 'wireguard' to your HOOKS array in your '/etc/mkinitcpio.conf' and rebuild the ramdisk."
+ echo "> e.g., HOOKS=(base udev autodetect keyboard keymap modconf block netconf wireguard tinyssh encryptssh filesystems fsck)"
+ echo "> don't forget to configure the '/etc/wireguard/remote-unlock' file then rerun mkinitcpio..."
+ echo ">"
+}
+
+post_remove() {
+ sed -i "/^HOOKS=/s/wireguard//" /etc/mkinitcpio.conf
+}
+
+# vim:set syntax=sh tw=78: