diff options
author | David Harrigan | 2019-10-22 11:11:10 +0100 |
---|---|---|
committer | David Harrigan | 2019-10-22 11:11:10 +0100 |
commit | 1e97882eee2b4178bb5ddc049e80e770f2395f48 (patch) | |
tree | 9cd873f566b66c9e9289921ea8b4dbb13358753e /wireguard_hook | |
parent | 20b2b7af017ea381fd217592c29abf63e835083d (diff) | |
download | aur-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_hook | 4 |
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() |