i3blocks: script vpn update
This commit is contained in:
parent
7396cc709d
commit
6993d61090
@ -3,7 +3,7 @@
|
|||||||
INSTANCE="${BLOCK_INSTANCE:-}"
|
INSTANCE="${BLOCK_INSTANCE:-}"
|
||||||
|
|
||||||
# Check VPN status
|
# Check VPN status
|
||||||
GET_VPN=$(ip route | grep -E -- "tun0|wg0|$INSTANCE" | awk '{ print $3 }')
|
GET_VPN=$(ip route get 4.2.2.1 | grep -E -- "tun0|wg0|$INSTANCE" | awk '{ print $3 }')
|
||||||
|
|
||||||
# Store status
|
# Store status
|
||||||
case $GET_VPN in
|
case $GET_VPN in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user