summaryrefslogtreecommitdiff
path: root/target/linux/octeon/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-05 00:19:59 +0000
committerJohn Crispin <john@openwrt.org>2014-12-05 00:19:59 +0000
commit6f665ea7b8565a39a2cd7367e6322a2efa9f2eb8 (patch)
tree5533c8a7f881d58d064727591f0f4679dd8cea58 /target/linux/octeon/base-files
parent28a9d9853bdfc01735eefe3588bb7f63a8d6c8db (diff)
downloadmtk-20170518-6f665ea7b8565a39a2cd7367e6322a2efa9f2eb8.zip
mtk-20170518-6f665ea7b8565a39a2cd7367e6322a2efa9f2eb8.tar.gz
mtk-20170518-6f665ea7b8565a39a2cd7367e6322a2efa9f2eb8.tar.bz2
octeon: sysupgrade: support config restore
SVN-Revision: 43518
Diffstat (limited to 'target/linux/octeon/base-files')
-rwxr-xr-xtarget/linux/octeon/base-files/lib/upgrade/platform.sh9
1 files changed, 9 insertions, 0 deletions
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)"