9 lines
194 B
Bash
Executable file
9 lines
194 B
Bash
Executable file
#!/bin/sh
|
|
|
|
vpn="$(nmcli -t -f name,type connection show --order name --active 2>/dev/null | grep vpn | head -1 | cut -d ':' -f 1)"
|
|
|
|
if [ -n "$vpn" ]; then
|
|
echo " $vpn"
|
|
else
|
|
echo ""
|
|
fi
|