-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathumountiso
More file actions
executable file
·31 lines (28 loc) · 823 Bytes
/
umountiso
File metadata and controls
executable file
·31 lines (28 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#===============================================================================
#
# FILE: umountiso
#
# USAGE: ./umountiso [isonamet]
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: adaptee (), adaptee@gmail.com
# COMPANY: Open Source Corporation
# VERSION: 1.0
# CREATED: 2009年12月27日 14时50分11秒 CST
# REVISION: ---
#===============================================================================
isoname=$( basename "$1" )
isonamewithoutextension=$(echo ${isoname%.*} )
mountpoint="${HOME}/Desktop/${isonamewithoutextension}"
if grep "$isoname" ~/.mtab.fuseiso > /dev/null ; then
fusermount -u "${mountpoint}"
else
# if not yet mounted, do nothing
true;
fi