ccmp25: swupdate: fix hardcoded index in fwupdate strategy
https://onedigi.atlassian.net/browse/DEL-9228 Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
parent
7c543bbafb
commit
97d8740fb2
|
|
@ -22,9 +22,9 @@ fi
|
||||||
|
|
||||||
# Variables.
|
# Variables.
|
||||||
FS_TYPE="ext4"
|
FS_TYPE="ext4"
|
||||||
LINUX_DEV_BLOCK="/dev/mmcblk0p1"
|
LINUX_DEV_BLOCK="/dev/mmcblk0p$(fdisk -l /dev/mmcblk0 | sed -ne "s,^[^0-9]*\([0-9]\+\).*\<linux\>.*,\1,g;T;p")"
|
||||||
LINUX_MOUNT_POINT="/mnt/linux"
|
LINUX_MOUNT_POINT="/mnt/linux"
|
||||||
ROOTFS_DEV_BLOCK="/dev/mmcblk0p3"
|
ROOTFS_DEV_BLOCK="/dev/mmcblk0p$(fdisk -l /dev/mmcblk0 | sed -ne "s,^[^0-9]*\([0-9]\+\).*\<rootfs\>.*,\1,g;T;p")"
|
||||||
ROOTFS_MOUNT_POINT="/system"
|
ROOTFS_MOUNT_POINT="/system"
|
||||||
|
|
||||||
# Determines whether the file system type is UBI or not.
|
# Determines whether the file system type is UBI or not.
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,8 @@ fi
|
||||||
# Variables.
|
# Variables.
|
||||||
BLOCK_SIZE=4096
|
BLOCK_SIZE=4096
|
||||||
ROOTFS_SOURCE_ENDPOINT="/dev/rdiff_source_rootfs"
|
ROOTFS_SOURCE_ENDPOINT="/dev/rdiff_source_rootfs"
|
||||||
ROOTFS_DEV_BLOCK_A="mmcblk0p3"
|
ROOTFS_DEV_BLOCK_A="mmcblk0p$(fdisk -l /dev/mmcblk0 | sed -ne "s,^[^0-9]*\([0-9]\+\).*\<rootfs_a\>.*,\1,g;T;p")"
|
||||||
ROOTFS_DEV_BLOCK_B="mmcblk0p4"
|
ROOTFS_DEV_BLOCK_B="mmcblk0p$(fdisk -l /dev/mmcblk0 | sed -ne "s,^[^0-9]*\([0-9]\+\).*\<rootfs_b\>.*,\1,g;T;p")"
|
||||||
|
|
||||||
# Determines whether the file system type is UBIFS or not.
|
# Determines whether the file system type is UBIFS or not.
|
||||||
is_ubifs() {
|
is_ubifs() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue