summarylogtreecommitdiffstats
path: root/wireguard_install
diff options
context:
space:
mode:
authorDavid Harrigan2019-10-22 09:15:33 +0100
committerDavid Harrigan2019-10-22 09:19:35 +0100
commit20b2b7af017ea381fd217592c29abf63e835083d (patch)
treeedeb68db1a245e24f9e53b5305a9859bf80dcf5a /wireguard_install
downloadaur-20b2b7af017ea381fd217592c29abf63e835083d.tar.gz
addpkg: mkinitcpio-wireguard 0.1.0-1
Initial Commit
Diffstat (limited to 'wireguard_install')
-rw-r--r--wireguard_install52
1 files changed, 52 insertions, 0 deletions
diff --git a/wireguard_install b/wireguard_install
new file mode 100644
index 000000000000..d681830892d7
--- /dev/null
+++ b/wireguard_install
@@ -0,0 +1,52 @@
+#!/bin/bash
+#
+# This is free and unencumbered software released into the public domain.
+#
+# Anyone is free to copy, modify, publish, use, compile, sell, or
+# distribute this software, either in source code form or as a compiled
+# binary, for any purpose, commercial or non-commercial, and by any
+# means.
+#
+# In jurisdictions that recognize copyright laws, the author or authors
+# of this software dedicate any and all copyright interest in the
+# software to the public domain. We make this dedication for the benefit
+# of the public at large and to the detriment of our heirs and
+# successors. We intend this dedication to be an overt act of
+# relinquishment in perpetuity of all present and future rights to this
+# software under copyright law.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
+#
+# For more information, please refer to <http://unlicense.org/>
+#
+
+build()
+{
+ add_binary wg
+ add_module wireguard
+
+ add_full_dir /etc/wireguard
+
+ add_runscript
+}
+
+help() {
+ cat <<HELPME
+This hook provides basic Wireguard support to assist in the remote unlocking
+of encrypted partitions. There are various parameters that are to be
+configured via the "/etc/wireguard/remote-unlock" file. This must be done!
+
+In addition to this hook, you will require something like tinyssh or dropbear
+appropriately configured in order to gain remote access. Please refer to the
+Arch Wiki for further details with regards to remote unlocking of encrypted
+partitions.
+HELPME
+}
+
+# vim:set syntax=sh tw=78: