aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-10 12:35:29 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-10 12:35:29 +1000
commit9ac47988e1b87e1f9cf9a5ac7b8b51b992a41b28 (patch)
tree32b6bb5bb6f39c749791cb0e65f593737adb2f97 /src
parentRudimentary support for wg-quick (diff)
downloadwireguard-monolithic-historical-9ac47988e1b87e1f9cf9a5ac7b8b51b992a41b28.tar.xz
wireguard-monolithic-historical-9ac47988e1b87e1f9cf9a5ac7b8b51b992a41b28.zip
Create runtime dir for both interface types
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/wg-quick/openbsd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/wg-quick/openbsd.bash b/src/tools/wg-quick/openbsd.bash
index 16c697f..2de4cdb 100755
--- a/src/tools/wg-quick/openbsd.bash
+++ b/src/tools/wg-quick/openbsd.bash
@@ -101,13 +101,13 @@ get_next_interface() {
add_if() {
REAL_INTERFACE="`get_next_interface`"
+ mkdir -p "/var/run/wireguard/"
if cmd ifconfig "$REAL_INTERFACE" create; then
cmd ifconfig "$REAL_INTERFACE" description "$INTERFACE"
echo "$REAL_INTERFACE" > "/var/run/wireguard/$INTERFACE.name"
echo "[+] Interface for $INTERFACE is $REAL_INTERFACE" >&2
else
export WG_TUN_NAME_FILE="/var/run/wireguard/$INTERFACE.name"
- mkdir -p "/var/run/wireguard/"
cmd "${WG_QUICK_USERSPACE_IMPLEMENTATION:-wireguard-go}" tun
get_real_interface
fi