Update 2024-01-08 23:06 OpenBSD/amd64-x13
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user