summarylogtreecommitdiffstats
path: root/wireguard_hook
diff options
context:
space:
mode:
authorDavid Harrigan2019-10-22 11:11:10 +0100
committerDavid Harrigan2019-10-22 11:11:10 +0100
commit1e97882eee2b4178bb5ddc049e80e770f2395f48 (patch)
tree9cd873f566b66c9e9289921ea8b4dbb13358753e /wireguard_hook
parent20b2b7af017ea381fd217592c29abf63e835083d (diff)
downloadaur-1e97882eee2b4178bb5ddc049e80e770f2395f48.tar.gz
feat: use a subdirectory for configuration
Instead of pulling in the entire `/etc/wireguard` directory, use a subdirectory, namely `/etc/wireguard/initcpio` to store the configuration. upgpkg: mkinitcpio-wireguard 0.2.0-1 upstream release
Diffstat (limited to 'wireguard_hook')
-rw-r--r--wireguard_hook4
1 files changed, 2 insertions, 2 deletions
diff --git a/wireguard_hook b/wireguard_hook
index f914e7cf50bf..59d85985fc83 100644
--- a/wireguard_hook
+++ b/wireguard_hook
@@ -28,8 +28,8 @@
_fatal () { echo ":: wireguard [FATAL]: ${@}. Cannot initialise Wireguard\!"; break=y; }
-if [ -f /etc/wireguard/remote-unlock ]; then
- . /etc/wireguard/remote-unlock
+if [ -f /etc/wireguard/initcpio/unlock ]; then
+ . /etc/wireguard/initcpio/unlock
fi
run_hook()