forked from onurbagoren/neurobionicspi
-
Notifications
You must be signed in to change notification settings - Fork 69
/
wpa_supplicant.Pifile
38 lines (34 loc) · 1.07 KB
/
wpa_supplicant.Pifile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Configures wpa_supplicant for systemd-networkd networking
RUN touch /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
RUN tee -a /etc/wpa_supplicant/wpa_supplicant-wlan0.conf <<EOF
country=${countrycode}
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
ap_scan=1
### automagic-ap ###
network={
priority=0
ssid="${apssid}"
mode=2
key_mgmt=WPA-PSK
psk="${appsk}"
frequency=2462
}
### your network(s) ###
network={
priority=10
ssid="MWireless"
scan_ssid=1
key_mgmt=WPA-EAP
eap=PEAP
identity="me-rousewifi"
password=hash:${mwpsk}
id_str="MWireless"
}
network={
priority=5
scan_ssid=1
ssid="${wifissid}"
psk="${wifipsk}"
}
EOF