New backup 2025-03-04 15:45:02
This commit is contained in:
parent
30a9b5d711
commit
25d60fe6f6
1 changed files with 11 additions and 0 deletions
11
de/home/.config/eww/scripts/network-updown
Executable file
11
de/home/.config/eww/scripts/network-updown
Executable 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
|
Loading…
Add table
Reference in a new issue