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