mirror of
https://github.com/Horhik/dotfiles.git
synced 2025-02-27 11:27:51 +00:00
9 lines
173 B
Bash
9 lines
173 B
Bash
#!/bin/sh
|
|
|
|
connection=$(pgrep -a openvpn$ | head -n 1 | awk '{print $NF }' | cut -d '.' -f 1)
|
|
|
|
if [ -n "$connection" ]; then
|
|
echo "VPN: connection"
|
|
else
|
|
echo ""
|
|
fi
|