Add restore
This commit is contained in:
parent
9a86fe14ad
commit
77e98329a5
10
restore
Normal file
10
restore
Normal 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
|
Loading…
x
Reference in New Issue
Block a user