octeon: use dedicated function to move config backup
authorRoman Kuzmitskii <damex.pp@icloud.com>
Thu, 22 Oct 2020 18:31:07 +0000 (18:31 +0000)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 26 Oct 2020 20:07:22 +0000 (21:07 +0100)
commit733700c652d37ca4c26f623d2a71337147af395d
tree955af7dcec274f65325496935cad7369aa53f7cb
parentd7db32440fd5d5eee015896ec19e583513bb9bae
octeon: use dedicated function to move config backup

All octeon devices use the same or a very similar way to backup
and restore configuration.

We expect to have more devices added and in order to stop
repeating ourselves move the logic to a separate function.

While at it, add a few checks.

Signed-off-by: Roman Kuzmitskii <damex.pp@icloud.com>
[commit message facelift]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/octeon/base-files/lib/preinit/79_move_config