From 6f665ea7b8565a39a2cd7367e6322a2efa9f2eb8 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 5 Dec 2014 00:19:59 +0000 Subject: octeon: sysupgrade: support config restore SVN-Revision: 43518 --- target/linux/octeon/base-files/lib/upgrade/platform.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'target/linux/octeon') diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index 11399a2629..d81d7fdec7 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)" -- cgit v1.2.3