This commit is contained in:
parent
aaf6f019f0
commit
b03b912c77
1 changed files with 39 additions and 2 deletions
41
install.sh
41
install.sh
|
|
@ -9,7 +9,7 @@ sudo resize2fs /dev/mmcblk0p2
|
|||
echo "--- Update OS ---"
|
||||
sudo apt -y update
|
||||
sudo apt -y upgrade
|
||||
sudo apt -y install python-pip dnsmasq dhcpcd
|
||||
sudo apt -y install python-pip dnsmasq dhcpcd git
|
||||
|
||||
echo "--- Install CosmicPi software --"
|
||||
sudo pip install cosmicpi
|
||||
|
|
@ -58,4 +58,41 @@ static domain_name_servers=192.168.12.1
|
|||
interface wlan0
|
||||
fallback static_wlan0
|
||||
EOF
|
||||
sudo systemctl restart dhcpcd
|
||||
sudo systemctl restart dhcpcd
|
||||
|
||||
# Populate `/etc/create_ap.conf` file
|
||||
sudo bash -c 'cat > /etc/create_ap.conf' << EOF
|
||||
CHANNEL=default
|
||||
GATEWAY=10.0.0.1
|
||||
WPA_VERSION=2
|
||||
ETC_HOSTS=0
|
||||
DHCP_DNS=gateway
|
||||
NO_DNS=0
|
||||
NO_DNSMASQ=0
|
||||
HIDDEN=0
|
||||
MAC_FILTER=0
|
||||
MAC_FILTER_ACCEPT=/etc/hostapd/hostapd.accept
|
||||
ISOLATE_CLIENTS=0
|
||||
SHARE_METHOD=nat
|
||||
IEEE80211N=0
|
||||
IEEE80211AC=0
|
||||
HT_CAPAB=[HT40+]
|
||||
VHT_CAPAB=
|
||||
DRIVER=nl80211
|
||||
NO_VIRT=0
|
||||
COUNTRY=
|
||||
FREQ_BAND=2.4
|
||||
NEW_MACADDR=
|
||||
DAEMONIZE=0
|
||||
NO_HAVEGED=0
|
||||
WIFI_IFACE=wlan0
|
||||
INTERNET_IFACE=eth0
|
||||
SSID=CosmicPi
|
||||
PASSPHRASE=
|
||||
USE_PSK=0
|
||||
EOF
|
||||
|
||||
git clone https://www.github.com/oblique/create_ap /tmp/create_ap --depth 1
|
||||
sudo make -C /tmp/create_ap install
|
||||
sudo systemctl enable create_ap
|
||||
sudo systemctl start create_ap
|
||||
Loading…
Reference in a new issue