Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

NOOBS wifi preconfig #341

@procount

Description

@procount

In commit f0347db "Add Wfif Station Support" (oct 26 2015) a great new feature was added to copy the wpa_supplicant.conf file from the NOOBS partition to the /settings partition which allows the wifi settings for NOOBS to be preconfigured. This feature has never really been announced, although the similar feature to copy the file from the /boot partition was announced for the latest Raspbian,
Even though I documented this feature in my update to 1.9, and announced it on the forum, there are still some people tweeting and posting that are not aware that this feature is available in NOOBS. So I think it should be announced better. BUT BEFORE YOU DO.... there are a couple of improvements that need making.

  1. In mainwindow.cpp#911 (startNetworking), the if ( !f.exists() ) statement means that any user's wifi config file is ONLY ever copied the first time NOOBS is booted. I suspect this is to avoid copying /etc/wpa_supplicant.conf over the top of a user configuration on a subsequent invocation. But it prevents a user from ever modifying the wifi config to be used by NOOBS without first deleting /settings/wpa_supplicant.conf (not easy for a Newbie!). So I think the logic is a bit wrong. Better to ALWAYS copy a users wifi config to /settings, and only copy the default one if it doesn't already exist
    in /settings. (Maybe even delete or rename the user's config file after copying it to avoid overwriting any manual wifi entries that are later added in the gui) That way the user can update the preconfiguration.
  2. When Raspbian is installed from NOOBS, it should also look at the /settings partition for wifi configuration and install that file like it does from the /boot partition. This can be done with a simple change to /os/Raspbian/partition_setup.sh, as detailed in my forum post

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions