13 lines
305 B
Bash
Executable File
13 lines
305 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Check if wireguard VPN is active
|
|
if nmcli c show --active | grep -q wireguard; then
|
|
echo ""
|
|
# If not, check if the connection named "YapiBiche" is active
|
|
elif nmcli c show --active | grep -q "YapiBiche"; then
|
|
echo ""
|
|
# If neither is active, return "NO"
|
|
else
|
|
echo ""
|
|
fi
|