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

This commit is contained in:
Penelope Gwen 2026-01-03 12:15:02 -08:00
parent c54f34164d
commit 2e6fcad9d6

View file

@ -0,0 +1,14 @@
#!/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 -c '.'
}
ifstatus
ip monitor address | {
while read -r event; do
ifstatus
done;
}