projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28a9d98
)
octeon: sysupgrade: support config restore
author
John Crispin
<john@openwrt.org>
Fri, 5 Dec 2014 00:19:59 +0000
(
00:19
+0000)
committer
John Crispin
<john@openwrt.org>
Fri, 5 Dec 2014 00:19:59 +0000
(
00:19
+0000)
SVN-Revision: 43518
target/linux/octeon/base-files/lib/upgrade/platform.sh
patch
|
blob
|
history
diff --git
a/target/linux/octeon/base-files/lib/upgrade/platform.sh
b/target/linux/octeon/base-files/lib/upgrade/platform.sh
index 11399a2629ec09b8d11742c8261caf7f03696f85..d81d7fdec780b24ab6ce01fc51baf4a0d95ee2f6 100755
(executable)
--- 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)"