Skip to content

Instantly share code, notes, and snippets.

@miawgogo
Last active March 13, 2017 12:59
Show Gist options
  • Save miawgogo/632b5c2a51858ed9680212d3df609c70 to your computer and use it in GitHub Desktop.
Save miawgogo/632b5c2a51858ed9680212d3df609c70 to your computer and use it in GitHub Desktop.
#!/bin/bash
wget -O 10_resume_wifi https://gist.githubusercontent.com/ioangogo/389f0ff730e3c7a97351b2de3a629352/raw/55976b1c36a9ce06efc035097525ef13189b75c2/10_resume_wifi
read -p "Do you want to read the bash script that has just being downloaded and run it:[Y/N] " yn
case $yn in
[Yy]* ) nano 10_resume_wifi;;
[Nn]* ) echo "OK Its your system";;
esac
sudo bash -c "mv 10_resume_wifi /etc/pm/sleep.d/10_resume_wifi"
sudo bash -c "chmod +x /etc/pm/sleep.d/10_resume_wifi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment