tegra-minimal-init: fix inconsistent indentions

Use blank space instead TAB everythere.

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
This commit is contained in:
Ming Liu
2023-06-27 10:37:38 +02:00
committed by Matt Madison
parent 7cdef334a1
commit e6ab46b6c4
2 changed files with 18 additions and 17 deletions

View File

@@ -14,12 +14,12 @@ fstype="auto"
if [ -z "$rootdev" ]; then
for bootarg in `cat /proc/cmdline`; do
case "$bootarg" in
root=*) rootdev="${bootarg##root=}" ;;
ro) opt="ro" ;;
rootwait) wait="yes" ;;
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
esac
case "$bootarg" in
root=*) rootdev="${bootarg##root=}" ;;
ro) opt="ro" ;;
rootwait) wait="yes" ;;
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
esac
done
fi
@@ -27,17 +27,18 @@ if [ -n "$wait" -a ! -b "${rootdev}" ]; then
echo "Waiting for ${rootdev}..."
count=0
while [ $count -lt 25 ]; do
test -b "${rootdev}" && break
sleep 0.1
count=`expr $count + 1`
test -b "${rootdev}" && break
sleep 0.1
count=`expr $count + 1`
done
fi
echo "Mounting ${rootdev}..."
[ -d /mnt ] || mkdir -p /mnt
count=0
while [ $count -lt 5 ]; do
if mount -t "${fstype}" -o "${opt}" "${rootdev}" /mnt; then
break
break
fi
sleep 1.0
done

View File

@@ -3,11 +3,11 @@ mayberoot=""
foundslotsfx="no"
for bootarg in `cat /proc/cmdline`; do
case "$bootarg" in
boot.slot_suffix=*) slotsfx="${bootarg##boot.slot_suffix=}"; foundslotsfx="yes" ;;
root=*) mayberoot="${bootarg##root=}" ;;
ro) opt="ro" ;;
rootwait) wait="yes" ;;
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
boot.slot_suffix=*) slotsfx="${bootarg##boot.slot_suffix=}"; foundslotsfx="yes" ;;
root=*) mayberoot="${bootarg##root=}" ;;
ro) opt="ro" ;;
rootwait) wait="yes" ;;
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
esac
done
@@ -15,8 +15,8 @@ if [ "$foundslotsfx" != "yes" ]; then
# This variable file contains a type (should be 6) followed by the value (should be 0 or 1)
bcdata=$(echo $(hexdump -n 8 -e '2/4 " %u"' /sys/firmware/efi/efivars/BootChainOsCurrent-781e084c-a330-417c-b678-38e696380cb9 2>/dev/null))
if [ "$(echo "$bcdata" | cut -d' ' -f1)" = "6" ]; then
slotnum=$(echo "$bcdata" | cut -d' ' -f2)
[ "$slotnum" != "1" ] || slotsfx="_b"
slotnum=$(echo "$bcdata" | cut -d' ' -f2)
[ "$slotnum" != "1" ] || slotsfx="_b"
fi
message="Waiting for APP$slotsfx partition..."