summarylogtreecommitdiffstats
path: root/mkinitcpio-wireguard.install
blob: 87d2bc150ef8b48717ed8898e334fad013363d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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/initcpio/unlock' file then rerun mkinitcpio..."
	echo ">"
}

post_remove() {
	sed -i "/^HOOKS=/s/wireguard//" /etc/mkinitcpio.conf
}

# vim:set syntax=sh tw=78: