This commit is contained in:
simono41 2018-04-08 21:25:09 +02:00
parent 6467c4fc1c
commit d7ab2d82be

View file

@ -55,8 +55,12 @@ function secureumount() {
#umount -R /mnt
fi
elif [ "${dateisystem}" == "ext4" ]; then
if cat /proc/mounts | grep ${mountpoint} > /dev/null; then
if cat /proc/mounts | grep ${mountpoint}/boot > /dev/null; then
umount ${mountpoint}/boot
fi
if cat /proc/mounts | grep ${mountpoint} > /dev/null; then
umount ${mountpoint}
fi
fi