Skip to content

Instantly share code, notes, and snippets.

@xazax
Created July 9, 2011 11:56
Show Gist options
  • Save xazax/1073546 to your computer and use it in GitHub Desktop.
Save xazax/1073546 to your computer and use it in GitHub Desktop.
linux
#!/bin/bash
sudo rfkill block all && sudo rfkill unblock all;
sudo netcfg -a && sudo netcfg wifi;
echo "Acquired address `ifconfig|awk '/192.168/ {print $2}'`";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment