Browse Source

better auto-mount detection

#146
rootzoll 6 years ago
parent
commit
b6ca87c2a6
  1. 2
      home.admin/_bootstrap.sh

2
home.admin/_bootstrap.sh

@ -86,7 +86,7 @@ while [ ${hddExists} -eq 0 ]
done
# 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
echo "HDD is there but not AutoMounted yet." >> $logFile

Loading…
Cancel
Save