mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-13 23:42:04 +08:00
rockchip: revert upgrade part change again
Fixes: b1b36c86af6d9fa3ba57eb2140025d2039996b81
This commit is contained in:
parent
53d63e38a9
commit
fb8a887bdf
@ -5,8 +5,8 @@ move_config() {
|
|||||||
|
|
||||||
if export_bootdevice && export_partdevice partdev 1; then
|
if export_bootdevice && export_partdevice partdev 1; then
|
||||||
if mount -o rw,noatime "/dev/$partdev" /mnt; then
|
if mount -o rw,noatime "/dev/$partdev" /mnt; then
|
||||||
if [ -f "/mnt/sysupgrade.tgz" ]; then
|
if [ -f "/mnt/$BACKUP_FILE" ]; then
|
||||||
mv -f "/mnt/sysupgrade.tgz" /
|
mv -f "/mnt/$BACKUP_FILE" /
|
||||||
fi
|
fi
|
||||||
umount /mnt
|
umount /mnt
|
||||||
fi
|
fi
|
||||||
|
@ -30,7 +30,7 @@ platform_copy_config() {
|
|||||||
|
|
||||||
if export_partdevice partdev 1; then
|
if export_partdevice partdev 1; then
|
||||||
mount -o rw,noatime "/dev/$partdev" /mnt
|
mount -o rw,noatime "/dev/$partdev" /mnt
|
||||||
cp -af "$CONF_TAR" "/mnt/sysupgrade.tgz"
|
cp -af "$UPGRADE_BACKUP" "/mnt/$BACKUP_FILE"
|
||||||
umount /mnt
|
umount /mnt
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -45,7 +45,7 @@ platform_do_upgrade() {
|
|||||||
|
|
||||||
sync
|
sync
|
||||||
|
|
||||||
if [ "$SAVE_PARTITIONS" = "1" ]; then
|
if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then
|
||||||
get_partitions "/dev/$diskdev" bootdisk
|
get_partitions "/dev/$diskdev" bootdisk
|
||||||
|
|
||||||
#extract the boot sector from the image
|
#extract the boot sector from the image
|
||||||
|
Loading…
x
Reference in New Issue
Block a user