The 'sed' might fail in some systems due user right and restrictions
so we use 'dd' and 'echo' to do the same trick.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Reported-by: "John Passaniti" <jpassaniti@ashly.com>
# Change partition type for mxs processor family
if [ "${SOC_FAMILY}" = "mxs" ]; then
bbnote "Setting partition type to 0x53 as required for mxs' SoC family."
- sed -i 's,.,\x53,450' ${SDCARD}
+ echo -n S | dd of=${SDCARD} bs=1 count=1 seek=450 conv=notrunc
fi
case "${IMAGE_BOOTLOADER}" in