mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 19:42:41 +00:00
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:
@@ -14,12 +14,12 @@ fstype="auto"
|
|||||||
|
|
||||||
if [ -z "$rootdev" ]; then
|
if [ -z "$rootdev" ]; then
|
||||||
for bootarg in `cat /proc/cmdline`; do
|
for bootarg in `cat /proc/cmdline`; do
|
||||||
case "$bootarg" in
|
case "$bootarg" in
|
||||||
root=*) rootdev="${bootarg##root=}" ;;
|
root=*) rootdev="${bootarg##root=}" ;;
|
||||||
ro) opt="ro" ;;
|
ro) opt="ro" ;;
|
||||||
rootwait) wait="yes" ;;
|
rootwait) wait="yes" ;;
|
||||||
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
|
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -27,17 +27,18 @@ if [ -n "$wait" -a ! -b "${rootdev}" ]; then
|
|||||||
echo "Waiting for ${rootdev}..."
|
echo "Waiting for ${rootdev}..."
|
||||||
count=0
|
count=0
|
||||||
while [ $count -lt 25 ]; do
|
while [ $count -lt 25 ]; do
|
||||||
test -b "${rootdev}" && break
|
test -b "${rootdev}" && break
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
count=`expr $count + 1`
|
count=`expr $count + 1`
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Mounting ${rootdev}..."
|
echo "Mounting ${rootdev}..."
|
||||||
[ -d /mnt ] || mkdir -p /mnt
|
[ -d /mnt ] || mkdir -p /mnt
|
||||||
count=0
|
count=0
|
||||||
while [ $count -lt 5 ]; do
|
while [ $count -lt 5 ]; do
|
||||||
if mount -t "${fstype}" -o "${opt}" "${rootdev}" /mnt; then
|
if mount -t "${fstype}" -o "${opt}" "${rootdev}" /mnt; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 1.0
|
sleep 1.0
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ mayberoot=""
|
|||||||
foundslotsfx="no"
|
foundslotsfx="no"
|
||||||
for bootarg in `cat /proc/cmdline`; do
|
for bootarg in `cat /proc/cmdline`; do
|
||||||
case "$bootarg" in
|
case "$bootarg" in
|
||||||
boot.slot_suffix=*) slotsfx="${bootarg##boot.slot_suffix=}"; foundslotsfx="yes" ;;
|
boot.slot_suffix=*) slotsfx="${bootarg##boot.slot_suffix=}"; foundslotsfx="yes" ;;
|
||||||
root=*) mayberoot="${bootarg##root=}" ;;
|
root=*) mayberoot="${bootarg##root=}" ;;
|
||||||
ro) opt="ro" ;;
|
ro) opt="ro" ;;
|
||||||
rootwait) wait="yes" ;;
|
rootwait) wait="yes" ;;
|
||||||
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
|
rootfstype=*) fstype="${bootarg##rootfstype=}" ;;
|
||||||
esac
|
esac
|
||||||
done
|
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)
|
# 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))
|
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
|
if [ "$(echo "$bcdata" | cut -d' ' -f1)" = "6" ]; then
|
||||||
slotnum=$(echo "$bcdata" | cut -d' ' -f2)
|
slotnum=$(echo "$bcdata" | cut -d' ' -f2)
|
||||||
[ "$slotnum" != "1" ] || slotsfx="_b"
|
[ "$slotnum" != "1" ] || slotsfx="_b"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
message="Waiting for APP$slotsfx partition..."
|
message="Waiting for APP$slotsfx partition..."
|
||||||
|
|||||||
Reference in New Issue
Block a user