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(){ 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;
} #}