Revert "shellfmt: config/sources; no changes"
This reverts commit 2f63a9cd98.
`[${1} / bootinfo_emmc.bin]`
`[${1} / FSBL.bin]` - This is the path to the file.
It cannot contain spaces.
This commit is contained in:
parent
a71b8675ae
commit
43166a8354
@ -76,8 +76,8 @@ write_uboot_platform() {
|
|||||||
|
|
||||||
declare -A d
|
declare -A d
|
||||||
d=(
|
d=(
|
||||||
[${1} / bootinfo_emmc.bin]="0:$(du -b ${1}/bootinfo_emmc.bin | awk '{print $1}')"
|
[${1}/bootinfo_emmc.bin]="0:$(du -b ${1}/bootinfo_emmc.bin | awk '{print $1}')"
|
||||||
[${1} / FSBL.bin]="512:$(du -b ${1}/FSBL.bin | awk '{print $1}')"
|
[${1}/FSBL.bin]="512:$(du -b ${1}/FSBL.bin | awk '{print $1}')"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ -b ${2}boot0 ]; then
|
if [ -b ${2}boot0 ]; then
|
||||||
@ -86,9 +86,11 @@ write_uboot_platform() {
|
|||||||
sync
|
sync
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in "${!d[@]}"; do
|
for f in "${!d[@]}"
|
||||||
|
do
|
||||||
if $(dd if=${device} bs=1 skip="${d[$f]%:*}" count="${d[$f]#*:}" \
|
if $(dd if=${device} bs=1 skip="${d[$f]%:*}" count="${d[$f]#*:}" \
|
||||||
conv=notrunc status=noxfer 2> /dev/null | cmp --quiet "${f}"); then
|
conv=notrunc status=noxfer 2>/dev/null | cmp --quiet "${f}")
|
||||||
|
then
|
||||||
echo "Skip $(basename $f), it is equal to the existing one"
|
echo "Skip $(basename $f), it is equal to the existing one"
|
||||||
else
|
else
|
||||||
echo "# Write =: $(basename $f) to ${device}"
|
echo "# Write =: $(basename $f) to ${device}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user