This commit is contained in:
simono41 2018-04-01 16:59:20 +02:00
parent ff09f4e1c2
commit 34aaa9f3dc

View file

@ -72,9 +72,11 @@ function secureumount() {
umount ${device}1 umount ${device}1
fi fi
if [ -n ${usbkeydevice} ]; then
if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then
umount ${usbkeydevice} umount ${usbkeydevice}
fi fi
fi
} }