Skip to content

Commit

Permalink
octeon: ubnt-edgerouter: fix sysupgrade config backup/restore
Browse files Browse the repository at this point in the history
er is missing from platform_copy_config() and octeon_move_config(), so
config is lost on every sysupgrade.

Signed-off-by: Jakob Haufe <[email protected]>
Link: openwrt/openwrt#16238
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
sur5r authored and robimarko committed Sep 2, 2024
1 parent bc2e5f1 commit 77037b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target/linux/octeon/base-files/lib/preinit/79_move_config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ octeon_move_config() {
itus,shield-router)
move_config "/dev/mmcblk1p1"
;;
ubnt,edgerouter-4 | \
er|\
ubnt,edgerouter-4|\
ubnt,edgerouter-6p)
move_config "/dev/mmcblk0p1"
;;
Expand Down
1 change: 1 addition & 0 deletions target/linux/octeon/base-files/lib/upgrade/platform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ platform_copy_config() {
itus,shield-router)
platform_copy_config_helper /dev/mmcblk1p1
;;
er|\
ubnt,edgerouter-4|\
ubnt,edgerouter-6p)
platform_copy_config_helper /dev/mmcblk0p1
Expand Down

0 comments on commit 77037b0

Please sign in to comment.