aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-12-05 00:19:59 +0000
committerJohn Crispin <blogic@openwrt.org>2014-12-05 00:19:59 +0000
commit9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4 (patch)
treef2ea624f51ed971eb0e7e7fa9936ad45c1077433 /target/linux/octeon
parent8a1d47919c266240f953810786e6f9f0e14bae00 (diff)
downloadupstream-9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4.tar.gz
upstream-9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4.tar.bz2
upstream-9ee6f0be3b4c0d4476a827ecc5dbe5b2fff36de4.zip
octeon: sysupgrade: support config restore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43518 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/octeon')
-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 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)"