15 lines
374 B
Bash
Executable file
15 lines
374 B
Bash
Executable file
#!/bin/bash
|
|
|
|
|
|
function ifstatus(){
|
|
nmcli --terse -f NAME,TYPE,AUTOCONNECT,AUTOCONNECT-PRIORITY,ACTIVE,DEVICE,STATE connection show | column -t --table-columns name,type,autoconnect,priority,active,device,state -s ':' -J | jq '.' #jq -c '.'
|
|
# jq '.table.[] | select(.type=="vpn")'
|
|
}
|
|
|
|
ifstatus
|
|
|
|
#ip monitor address | {
|
|
# while read -r event; do
|
|
# ifstatus
|
|
# done;
|
|
#}
|