This file contains 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/bash | |
# | |
# This version uses Debian Stretch, please use that version. | |
# Usage: curl -sSL https://gist.githubusercontent.com/aceisace/b53e93924c969ac47e2333e970c132b0/raw/b4fbeed6cbe74d306c1951dc03435b38132b034e/Raspberry-AP-Setup.sh | bash | |
echo -p "Please enter a SSID for your AP, followed by [ENTER]:" | |
read APSSID | |
echo "Your AP will be named $APSSID" | |
echo -p "Please enter a password for your AP, followed by [ENTER]:" |
This file contains 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 | |
# The script configures simultaneous AP and Managed Mode Wifi on Raspberry Pi Zero W (should also work on Raspberry Pi 3) | |
# Usage: curl https://gist.githubusercontent.com/aceisace/b7ca22b50531f43d48c74d86eb62c89a/raw | sh -s WifiSSID WifiPass APSSID APPass | |
# Licence: GPLv3 | |
# Author: Darko Lukic <lukicdarkoo@gmail.com> | |
# Special thanks to: https://albeec13.github.io/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/ | |
MAC_ADDRESS="$(cat /sys/class/net/wlan0/address)" | |
CLIENT_SSID="${1}" | |
CLIENT_PASSPHRASE="${2}" |