fix(setup-wifi): preserve other configured interfaces #1

Open
behrens wants to merge 2 commits from behrens/lightwhalerpi3:fix/setup-wifi-eth0 into develop
First-time contributor

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.

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.
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.
Owner

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 =)

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 =)
sysop changed target branch from master to develop 2026-09-03 23:36:42 +02:00
sysop changed target branch from develop to master 2026-09-03 23:37:40 +02:00
stephan changed target branch from master to develop 2026-09-03 23:53:04 +02:00
This pull request has changes conflicting with the target branch.
  • docs/BUILD
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.
git fetch -u fix/setup-wifi-eth0:behrens-fix/setup-wifi-eth0
git switch behrens-fix/setup-wifi-eth0

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.

git switch develop
git merge --no-ff behrens-fix/setup-wifi-eth0
git switch behrens-fix/setup-wifi-eth0
git rebase develop
git switch develop
git merge --ff-only behrens-fix/setup-wifi-eth0
git switch behrens-fix/setup-wifi-eth0
git rebase develop
git switch develop
git merge --no-ff behrens-fix/setup-wifi-eth0
git switch develop
git merge --squash behrens-fix/setup-wifi-eth0
git switch develop
git merge --ff-only behrens-fix/setup-wifi-eth0
git switch develop
git merge behrens-fix/setup-wifi-eth0
git push origin develop
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Lightwhale/lightwhale!1
No description provided.