Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20-networking.sh #223

Open
XIIIVI opened this issue Jun 22, 2020 · 0 comments
Open

20-networking.sh #223

XIIIVI opened this issue Jun 22, 2020 · 0 comments

Comments

@XIIIVI
Copy link

XIIIVI commented Jun 22, 2020

Hi all,

I think there is an issue in the bootstrap script 20-networking.sh.

Line 109, the WiFi is configured with NET_SSID and NET_WPAPSK and should be replaced with NET_WIFI_SSID and NET_WIFI_PSK.

Moreover, the condition line 97 is wrong
if [ -z "$NET_WIFI_SSID" ] && [ -z "$NET_WIFI_PSK" ] ; then
must be replaced by
if [ ! -z "$NET_WIFI_SSID" ] && [ ! -z "$NET_WIFI_PSK" ] ; then

The section

printf "
  ctrl_interface=/run/wpa_supplicant
  ctrl_interface_group=wheel
  update_config=1
  eapol_version=1
  ap_scan=1
  fast_reauth=1
  " > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

should be replaced either by
printf "
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
" > ${ETC_DIR}/wpa_supplicant/wpa_supplicant-wlan0.conf

or by
chroot_exec printf "
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=wheel
update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
" > /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant