#!/bin/sh
if [ ! -n "$VPN_NODE" ]; then
  echo "Please set VPN_NODE"
  exit 2
fi
if [ "$1" == "up" ]; then
	cmd="up $VPN_NODE"
elif [ "$1" == "down" ]; then
	cmd="down $VPN_NODE"
else
	echo "Please pass an argument: up, down"
  exit 1
fi
doas wg-quick $cmd