Skip to content

Instantly share code, notes, and snippets.

View robobluebird's full-sized avatar

Zachary Schroeder robobluebird

View GitHub Profile
@robobluebird
robobluebird / addwifi.sh
Created April 20, 2019 22:58 — forked from mansouryaacoubi/addwifi.sh
Adds wifi to the wpa_supplicant file and reconfigures wpa_cli (Raspberry Pi Wifi)
#!/bin/bash
# @author Mansour Yaacoubi
# @filename addwifi.sh
# @usage sudo ./addwifi.sh "SSID" "WPA-Key"
# @task adds wifi to the wpa_supplicant file and reconfigures wpa_cli
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit 1
else