New backup 2025-08-31 14:30:02
This commit is contained in:
parent
5bf45f3fc9
commit
f44436a0d5
1 changed files with 3 additions and 3 deletions
|
@ -19,11 +19,11 @@ function ifstatus(){
|
||||||
fi
|
fi
|
||||||
vpn_cons=$(nmcli -g TYPE,NAME connection show --active | grep -e "vpn" -e "wireguard")
|
vpn_cons=$(nmcli -g TYPE,NAME connection show --active | grep -e "vpn" -e "wireguard")
|
||||||
|
|
||||||
case ${vpn_cons} in
|
case "${vpn_cons//\n/;}" in
|
||||||
*ProtonVPN|*'ProtonVPN\n')
|
*ProtonVPN|*'ProtonVPN;')
|
||||||
is_proton='true'
|
is_proton='true'
|
||||||
;;&
|
;;&
|
||||||
*ProtonVPN-SC|*'ProtonVPN-SC\n')
|
*ProtonVPN-SC|*'ProtonVPN-SC;')
|
||||||
is_proton_sc='true'
|
is_proton_sc='true'
|
||||||
;;&
|
;;&
|
||||||
*HomeVPN)
|
*HomeVPN)
|
||||||
|
|
Loading…
Add table
Reference in a new issue