Add restore

This commit is contained in:
tux 2025-09-12 10:36:38 +02:00
parent 9a86fe14ad
commit 77e98329a5

10
restore Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Get all network interfaces listed by nmcli
interfaces=$(nmcli -t -f DEVICE device | grep -v '^lo$' | grep -v '^$')
# Loop through each interface and set it as managed
for iface in $interfaces; do
echo "Setting $iface to be managed by NetworkManager..."
nmcli device set "$iface" managed yes
done