You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
one 3 needs different get_partitions() in the init file
the function from the original init file works
get_partitions() {
echo "* Detecting main storage partitions"
partitions=`sed -r "s/( )+/ /g" /proc/partitions | cut -s -d\ -f 5`
storagedevs=""
for part in ${partitions}; do
#blkdev = ${part} without the pX for partition
blkdev=${part%p?}
if test "${part#mmcblk}" != "${part}"; then
# Found SD/MMC, this could be our boot disk!
if test "${hw_bootdevice}" = ""; then
# Bootloader didn't give a CID, so assume this is the boot device
storagedevs="${part} ${storagedevs}"
elif test "`cat /sys/block/${blkdev}/device/cid`" = "${hw_bootdevice}"; then
# this was the boot device...
storagedevs="${part} ${storagedevs}"
else
# just storage device
storagedevs="${storagedevs} ${part}"
fi
elif test "${part#hd}" != "${part}"; then
# Found Harddisk, so must be boot disk (we ship no devices with HDD & other storage)
storagedevs="${part} ${storagedevs}"
elif test "${part#mtd}" != "${part}"; then
# Found Flash chip, we don't mount that here
storagedevs="${storagedevs}"
else
echo Ignoring unknown storage device ${part}...
fi
done
# Trim spaces from start/end
#NOTE: the space after # has intentionally been left blank ;)
storagedevs="${storagedevs# }"
storagedevs="${storagedevs% }"
if test "${storagedevs}" = ""; then
echo "* No storage detected"
unset storagedevs
else
echo "* Storage detected"
echo $storagedevs
fi
}
The text was updated successfully, but these errors were encountered:
one 3 needs different get_partitions() in the init file
the function from the original init file works
The text was updated successfully, but these errors were encountered: