New backup 2026-01-03 12:45:02
This commit is contained in:
parent
c126e70c0f
commit
123f759adf
1 changed files with 6 additions and 6 deletions
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
|
||||
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 -c '.'
|
||||
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;
|
||||
}
|
||||
#ip monitor address | {
|
||||
# while read -r event; do
|
||||
# ifstatus
|
||||
# done;
|
||||
#}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue