Skip to content

Instantly share code, notes, and snippets.

View wemakefuture's full-sized avatar
💭
Coding for Automation

wemakefuture wemakefuture

💭
Coding for Automation
View GitHub Profile
@wemakefuture
wemakefuture / wpa2-wifi-connect.sh
Created March 11, 2018 23:24 — forked from rjcorwin/wpa2-wifi-connect.sh
A simple `wifi` command for Debian that will connect you to a WPA2 WiFi network
#!/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