Fix automounts. This seems to work without locking up...

This commit is contained in:
2017-10-15 20:12:20 +02:00
parent 35f36a4300
commit b90cf92fb5
3 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ do
/usr/bin/sudo /sbin/umount $full_mount
# if resource is busy force unmount with diskutil DANGER
if [ ! $? ]; then /usr/sbin/diskutil unmount force $full_mount; fi
/usr/bin/sudo -u $mnt_usr cd $full_mount
/usr/bin/sudo -u $mnt_usr cd $full_mount
fi
else
echo "fix_mounts [$d] Not mounted: $full_mount - ignoring"