diff options
author | John Crispin <blogic@openwrt.org> | 2014-12-05 00:19:59 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-12-05 00:19:59 +0000 |
commit | 9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4 (patch) | |
tree | f2ea624f51ed971eb0e7e7fa9936ad45c1077433 | |
parent | 8a1d47919c266240f953810786e6f9f0e14bae00 (diff) | |
download | master-187ad058-9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4.tar.gz master-187ad058-9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4.tar.bz2 master-187ad058-9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4.zip |
octeon: sysupgrade: support config restore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43518 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | target/linux/octeon/base-files/lib/upgrade/platform.sh | 9 |
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 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)" |