mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
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:
@@ -76,8 +76,8 @@ write_uboot_platform() {
|
||||
|
||||
declare -A d
|
||||
d=(
|
||||
[${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}/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}')"
|
||||
)
|
||||
|
||||
if [ -b ${2}boot0 ]; then
|
||||
@@ -86,9 +86,11 @@ write_uboot_platform() {
|
||||
sync
|
||||
fi
|
||||
|
||||
for f in "${!d[@]}"; do
|
||||
for f in "${!d[@]}"
|
||||
do
|
||||
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"
|
||||
else
|
||||
echo "# Write =: $(basename $f) to ${device}"
|
||||
|
||||
Reference in New Issue
Block a user