Skip to content

Commit 2aac3f9

Browse files
authored
Create UBUNTU_unmountscript.sh
1 parent 416893a commit 2aac3f9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

UBUNTU_unmountscript.sh

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#/bin/bash
2+
3+
echo ""
4+
5+
echo "Unmounting..."
6+
cat log_mountscript.log | xargs umount -n
7+
8+
retval=$?
9+
if [ $retval -ne 0 ]; then
10+
echo "LOG DOESN'T EXISTS !"
11+
exit
12+
fi
13+
14+
echo "Removing mountpoint..."
15+
cat log_mountscript.log | xargs rm -rf
16+
17+
retval=$?
18+
if [ $retval -ne 0 ]; then
19+
echo "MOUNTPOINT DOESN'T EXISTS !"
20+
exit
21+
fi
22+
23+
echo "Deleting log..."
24+
rm -rf log_mountscript.log
25+
26+
retval=$?
27+
if [ $retval -ne 0 ]; then
28+
echo "CAN'T DELETE LOG !"
29+
exit
30+
fi
31+
32+
echo ""

0 commit comments

Comments
 (0)