octeon: sysupgrade: support config restore
SVN-Revision: 43518
This commit is contained in:
parent
28a9d9853b
commit
6f665ea7b8
1 changed files with 9 additions and 0 deletions
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue