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(){
|
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")'
|
# jq '.table.[] | select(.type=="vpn")'
|
||||||
}
|
}
|
||||||
|
|
||||||
ifstatus
|
ifstatus
|
||||||
|
|
||||||
ip monitor address | {
|
#ip monitor address | {
|
||||||
while read -r event; do
|
# while read -r event; do
|
||||||
ifstatus
|
# ifstatus
|
||||||
done;
|
# done;
|
||||||
}
|
#}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue