aboutsummaryrefslogtreecommitdiff
path: root/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions.sh')
-rw-r--r--functions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
index 95f8480..e94a42c 100644
--- a/functions.sh
+++ b/functions.sh
@@ -2,6 +2,10 @@ cleanup (){
# Clean up all temporary mount points
set +x
set +e
+ echo "killing processes using mount point ..."
+ fuser -k $R
+ sleep 3
+ fuser -9 -k -v $R
echo "removing temporary mount points ..."
umount -l $R/proc 2> /dev/null
umount -l $R/sys 2> /dev/null