mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-20 02:47:34 +01:00
#5053 add more waiting for USB hdd
This commit is contained in:
@@ -959,6 +959,9 @@ if [ "$action" = "mount" ]; then
|
|||||||
dataMountPoint="/mnt/disk_data"
|
dataMountPoint="/mnt/disk_data"
|
||||||
|
|
||||||
# Source status to get drive configuration
|
# Source status to get drive configuration
|
||||||
|
echo "# checking disk data ... please wait"
|
||||||
|
sync
|
||||||
|
sleep 4
|
||||||
source <(/home/admin/config.scripts/blitz.data.sh status)
|
source <(/home/admin/config.scripts/blitz.data.sh status)
|
||||||
|
|
||||||
# check directories are already mounted
|
# check directories are already mounted
|
||||||
@@ -973,6 +976,7 @@ if [ "$action" = "mount" ]; then
|
|||||||
|
|
||||||
# check partitions were found
|
# check partitions were found
|
||||||
if [ ${#storagePartition} -eq 0 ]; then
|
if [ ${#storagePartition} -eq 0 ]; then
|
||||||
|
echo "# storageDevice(${storageDevice})"
|
||||||
echo "error='storagePartition not detected'"
|
echo "error='storagePartition not detected'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user