{"action":"closed","issue":{"url":"https://api.github.com/repos/raspberrypi/noobs/issues/341","repository_url":"https://api.github.com/repos/raspberrypi/noobs","labels_url":"https://api.github.com/repos/raspberrypi/noobs/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/raspberrypi/noobs/issues/341/comments","events_url":"https://api.github.com/repos/raspberrypi/noobs/issues/341/events","html_url":"https://github.com/raspberrypi/noobs/issues/341","id":155261076,"node_id":"MDU6SXNzdWUxNTUyNjEwNzY=","number":341,"title":"NOOBS wifi preconfig","user":{"login":"procount","id":4853137,"node_id":"MDQ6VXNlcjQ4NTMxMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/4853137?v=4","gravatar_id":"","url":"https://api.github.com/users/procount","html_url":"https://github.com/procount","followers_url":"https://api.github.com/users/procount/followers","following_url":"https://api.github.com/users/procount/following{/other_user}","gists_url":"https://api.github.com/users/procount/gists{/gist_id}","starred_url":"https://api.github.com/users/procount/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procount/subscriptions","organizations_url":"https://api.github.com/users/procount/orgs","repos_url":"https://api.github.com/users/procount/repos","events_url":"https://api.github.com/users/procount/events{/privacy}","received_events_url":"https://api.github.com/users/procount/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-05-17T13:35:26Z","updated_at":"2018-10-04T16:40:56Z","closed_at":"2018-10-04T16:40:56Z","author_association":"CONTRIBUTOR","body":"In commit  f0347db8d0eece99e97b97ab8ed32a7d584ea0c4 \"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, \nEven 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.\n1. 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 \n   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.\n2. 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](https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=141559)\n"}}
{"actor":{"display_login":"XECDesign"}}