This file contains hidden or 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/sh | |
## A simple `wifi` command for Debian that will connect you to a WPA2 WiFi network | |
## usage: | |
## sudo ./wpa2-wifi-connect.sh <ssid> <pass> | |
ifdown wlan0 | |
# build the interfaces file that will point to the file that holds our configuration | |
rm /etc/network/interfaces | |
touch /etc/network/interfaces |