mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
octeon: sysupgrade: support config restore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43518 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user