Update 2024-01-08 23:06 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-01-08 23:06:28 +01:00
parent 4f7fbeabec
commit 085bc227ad
19 changed files with 61 additions and 114 deletions

View File

@@ -7,6 +7,8 @@ SEL="$(print "$LIST\ndeactivate\nhome" | cut -d' ' -f1 | $DMENU_CMD -l 20 -p "VP
[ -z "$SEL" ] && exit 0
needs wireguard-tools--
if [ "$SEL" == "deactivate" ]
then
ACTIVE=$(ifconfig | grep wg-quick | cut -d: -f3 | tr -d " ")
@@ -18,6 +20,7 @@ then
exit 0
fi
HOST="$(echo "$LIST" | fgrep "$SEL" | cut -d' ' -f2)"
cat /etc/wireguard/template.conf | sed "s/XXXXXX/$HOST/g" > /tmp/vpn.conf