Last active
November 13, 2015 08:38
-
-
Save phosphore/47d7d5f6488f8c407376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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