Skip to content

Instantly share code, notes, and snippets.

@phosphore
Last active November 13, 2015 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phosphore/47d7d5f6488f8c407376 to your computer and use it in GitHub Desktop.
Save phosphore/47d7d5f6488f8c407376 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
if ! pkill -kill wicd*; then echo "Couldn't kill wicd (maybe it's not even running?)"; exit 1; fi
if ! service wicd stop; then echo "Couldn't stop wicd daemon"; exit 1; fi
if ! service NetworkManager start; then echo "Couldn't start Network Manager"; exit 1; fi
echo "All done :)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment