Adopt Wi-Fi networks set up before first boot#57
Merged
Conversation
Adds an Adopt action that re-homes a flash-time (netplan) Wi-Fi network into a managed keyfile so webconfig can edit and remove it. Foreign networks can now be activated, the remove guard counts them as a fallback, and disabled foreign actions explain why.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Wi-Fi network configured before first boot — for example through the Raspberry Pi Imager — used to appear on the webconfig Wi-Fi page as a read-only "foreign" entry that could not be edited, activated, or removed. This adds an Adopt action that imports such a network into a managed profile, after which it behaves like any network added through webconfig.
It also lets a foreign network be activated directly, counts it as a fallback so the current network can be removed whenever another one exists, and labels the disabled actions on a foreign row so it is clear why they are greyed out.