diff --git a/restore b/restore new file mode 100644 index 0000000..fd707fa --- /dev/null +++ b/restore @@ -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 \ No newline at end of file