Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Created February 25, 2015 09:15
Show Gist options
  • Save marc-hanheide/8b79676812f8710b90bb to your computer and use it in GitHub Desktop.
Save marc-hanheide/8b79676812f8710b90bb to your computer and use it in GitHub Desktop.
reconnect NetworkManager to a specific network everytime it's lost
# every minute check if connection is still alive and try reconnecting if it's not
*/1 * * * * /usr/bin/nmcli c status id STRANDS-AAF > /dev/null || /usr/bin/nmcli c up id STRANDS-AAF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment