[RFC] fff-network: Add migration for Archer C7 WAN ports #93
No reviewers
Labels
No Label
RFC
RFT
WIP
blocked
bsp
bug
build/scripts/tools
duplicate
feature
fixed
layer3
mantis
more details required
needs changes
node
packages/fff
rejected
security
trivial
upstream
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: freifunk-franken/firmware#93
Loading…
Reference in New Issue
No description provided.
Delete Branch "fbl:c7"
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?
With
8d66bdf
the port configuration of TP-Link Archer C7 has beenchanged to a single-interface configuration.
This had unforseen side effects on upgraded devices. Because WANDEV
is evaluated from the updated network.* file, the port configuration
of the switch is evaluated from the update-safe network.config, which
is now incompatible with the updated interface configuration.
Therefore, a migration script has to be added, which updates the port
configuration in network.config to the new single-interface network
configuration.
Fixes: #60
Signed-off-by: Fabian Bläse fabian@blaese.de
cc703feb52
to9e9ac44617
Klingt konzeptionell plausibel, nur die SED Syntax ist mir nicht direkt geläufig...
sed syntax is per se nicht gelaeufig. Wird auch nach 35 Jahren an der Linuxkonsole nicht besser. Aber passt schon. Ist ein wenig wie bei awk mit dem regex zum Zeilen raussuchen. Dann wird in-place ersetzt.
Der sed ist maximal beschissen und es gibt bestimmt tausend Randfälle die passieren könnten, wenn man diese Konfiguration auf bestimmte Weise verändert hat. Darauf sollten wir dann auf der Update-Seite unbedingt hinweisen.
Für die "normalen" Nutzer, die jetzt also entweder den Stand vor 20200501 oder den Stand 20200501 haben, sollte es aber auf jeden Fall klappen. Und für die meisten "gewöhnlichen" Veränderungen an WAN_PORTS ebenfalls.
Wird gemergt.
Pull request closed