1 2 3 4 5 6 7 8
#!/bin/sh if [ "$(ip link show | rg proton0)" = "" ] then echo "no vpn" else echo "vpn" fi