Add new bin scripts

This commit is contained in:
Gregory Eremin
2020-09-12 09:59:24 +02:00
parent 9b3ff362cf
commit 5f10a0fc70
13 changed files with 204 additions and 37 deletions
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# export VPN_NAME=MyVPN from dotfiles/secrets/vpn
if [ "$(nmcli -g GENERAL.STATE con show $VPN_NAME)" == "activated" ]; then
echo Disconnecting
nmcli con down "$VPN_NAME"
else
echo Connecting
nmcli con up "$VPN_NAME"
fi
exit 0