1
0
Fork 0
dotfiles/bin/vpn-status

9 lines
170 B
Plaintext
Raw Permalink Normal View History

2020-09-12 07:59:24 +00:00
#!/bin/bash
# export VPN_NAME=MyVPN from dotfiles/secrets/vpn
if [ "$(nmcli -g GENERAL.STATE con show $VPN_NAME)" == "activated" ]; then
2023-02-14 10:02:19 +00:00
echo ""
2020-09-12 07:59:24 +00:00
else
echo ""
fi