mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
better auto-mount detection
This commit is contained in:
@@ -86,7 +86,7 @@ while [ ${hddExists} -eq 0 ]
|
|||||||
done
|
done
|
||||||
|
|
||||||
# check if the HDD is auto-mounted
|
# check if the HDD is auto-mounted
|
||||||
hddIsAutoMounted=$(lsblk | grep -c '/mnt/hdd')
|
hddIsAutoMounted=$(sudo cat /etc/fstab | grep -c '/mnt/hdd')
|
||||||
if [ ${hddIsAutoMounted} -eq 0 ]; then
|
if [ ${hddIsAutoMounted} -eq 0 ]; then
|
||||||
|
|
||||||
echo "HDD is there but not AutoMounted yet." >> $logFile
|
echo "HDD is there but not AutoMounted yet." >> $logFile
|
||||||
|
|||||||
Reference in New Issue
Block a user