---
 target/linux/octeon/base-files/lib/upgrade/platform.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh 
b/target/linux/octeon/base-files/lib/upgrade/platform.sh
index 11399a2..d81d7fd 100755
--- a/target/linux/octeon/base-files/lib/upgrade/platform.sh
+++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh
@@ -23,6 +23,15 @@ platform_get_rootfs() {
        fi
 }
 
+platform_copy_config() {
+       local board="$(octeon_board_name)"
+       local rootfs="$(platform_get_rootfs)"
+
+       mount -t ext4 -o rw,noatime "${rootfs}" /mnt
+       cp -af "$CONF_TAR" /mnt/
+       umount /mnt
+}
+
 platform_do_upgrade() {
        local board=$(octeon_board_name)
        local rootfs="$(platform_get_rootfs)"
-- 
1.8.5.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to