mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 04:26:28 +02:00
fix syntax
This commit is contained in:
@@ -255,13 +255,16 @@ if [ "$1" = "status" ]; then
|
|||||||
fi
|
fi
|
||||||
done <<< "${ext4Partitions}"
|
done <<< "${ext4Partitions}"
|
||||||
|
|
||||||
# check boot situation for status
|
# check boot situation
|
||||||
if[ ${#storageDevice} -gt 0 ] && [ "${storageDevice}" == "${systemDevice}" ]; then
|
if [ -n "${storageDevice}" ] && [ "${storageDevice}" = "${systemDevice}" ]; then
|
||||||
|
# system runs from storage device
|
||||||
bootFromStorage=1
|
bootFromStorage=1
|
||||||
bootFromSD=0
|
bootFromSD=0
|
||||||
else
|
else
|
||||||
|
# system might run from SD card
|
||||||
bootFromStorage=0
|
bootFromStorage=0
|
||||||
bootFromSD=$(lsblk | grep mmcblk | grep -c /boot)
|
# check if boot partition is on SD card (mmcblk)
|
||||||
|
bootFromSD=$(findmnt -n /boot | grep -c "^/dev/mmcblk")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get a list of all connected drives >7GB ordered by size (biggest first)
|
# get a list of all connected drives >7GB ordered by size (biggest first)
|
||||||
|
Reference in New Issue
Block a user