fix(setup-wifi): preserve other configured interfaces #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "behrens/lightwhalerpi3:fix/setup-wifi-eth0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
setup-wifi regenerated /etc/network/interfaces from scratch on every
run, keeping only "lo" and the wifi device. Any other already-configured
interface (typically eth0) silently lost its "auto" stanza and stopped
coming up on subsequent boots, even though the underlying interface and
its wiring were untouched.
Found live on a Pi 3 with both onboard wifi and a wired connection: wifi
came up fine after setup-wifi + reboot, eth0 never did again. Preserve
every other stanza verbatim; only "lo" and this run's own device get
regenerated, so re-running the command to change wifi settings still
replaces its own old block rather than duplicating it.
Thanks! Just so you know, I appreciate this, and I'm adding this into the improvement of the script, that I'm already working on =)
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.