New backup 2026-01-03 12:45:02

This commit is contained in:
Penelope Gwen 2026-01-03 12:45:02 -08:00
parent c126e70c0f
commit 123f759adf

View file

@ -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;
#}