octeon: use shared function for platform_copy_config()
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 16 May 2021 21:58:59 +0000 (23:58 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 16 May 2021 23:01:32 +0000 (01:01 +0200)
commit4508b12b088a1d54baeabea117fcd7bb3dd5ed1f
tree6121c0c397e81627d1dc00247794d9a86cdc45d1
parentb108ed0ab09492d8d5a1775714da1ee34ce475ee
octeon: use shared function for platform_copy_config()

This reduces redundant instructions.

The solution is inspired by a different implemention of
Roman Kuzmitskii.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/octeon/base-files/lib/upgrade/platform.sh