Skip to content

Instantly share code, notes, and snippets.

View robobluebird's full-sized avatar

Zachary Schroeder robobluebird

View GitHub Profile
@robobluebird
robobluebird / wpa_cli_FAIL_help.sh
Created April 21, 2019 13:12
DHCP thingy to try if wpa_cli reconfigure FAILS
wpa_cli -i wlan0 reconfigure || ( systemctl restart dhcpcd; wpa_cli -i wlan0 reconfigure; )
@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
i'm <sup>so<sup>scared</sup></sup>