mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-10 21:00:36 +02:00
better automounted detection
This commit is contained in:
parent
9960966c95
commit
b5dc3816e7
@ -86,8 +86,8 @@ while [ ${hddExists} -eq 0 ]
|
||||
done
|
||||
|
||||
# check if the HDD is auto-mounted
|
||||
hddIsAutoMounted=$(ls -la /mnt/hdd 2>/dev/null)
|
||||
if [ ${#hddIsAutoMounted} -eq 0 ]; then
|
||||
hddIsAutoMounted=$(lsblk | grep -c '/mnt/hdd')
|
||||
if [ ${hddIsAutoMounted} -eq 0 ]; then
|
||||
|
||||
echo "HDD is there but not AutoMounted yet." >> $logFile
|
||||
echo "Analysing the situation ..." >> $logFile
|
||||
|
Loading…
x
Reference in New Issue
Block a user