#!/bin/bash


OPENFILE=`cat $HOME/acetonesm`

rm -rf $HOME/acetonesm

mkdir "$OPENFILE"/test
if test -e "$OPENFILE/test"
then
rm -rf "$OPENFILE"/test
kdialog --caption "AcetoneISO2" --msgbox "Folder is allready Umounted unless the dir doesn't belong to Your user"
exit
fi


fusermount -u -z "$OPENFILE"

mkdir "$OPENFILE"/test
if test -e "$OPENFILE"/test
then
rm -rf "$OPENFILE"/test

kdialog --caption "AcetoneISO" --msgbox "Folder Umounted!"
exit
else
kdialog --caption "AcetoneISO" --error "Folder was not Umounted\nCheck if the dir is of Your user"
exit
fi
