New backup 2025-03-04 15:45:02

This commit is contained in:
Penelope Gwen 2025-03-04 15:45:02 -08:00
parent 30a9b5d711
commit 25d60fe6f6

View file

@ -0,0 +1,11 @@
#!/bin/bash
type="${1}"
action="${2}"
devices=$(nmcli -g DEVICE device)
for d in ${devices};do
if [ "$(nmcli -g GENERAL.TYPE device show ${d})" = "${type}" ];then
printf 'device: %s\n' "${d}"
fi
done