-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmount-ISO
More file actions
executable file
·32 lines (24 loc) · 827 Bytes
/
mount-ISO
File metadata and controls
executable file
·32 lines (24 loc) · 827 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
32
#!/bin/bash
# mount
#gksudo -k /bin/echo "got r00t?"
#BASENAME=`basename $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS .iso`
BASENAME=`basename $1`
sudo mkdir "/media/$BASENAME"
#zenity --info --title "ISO Mounter" --text "$BASENAME e $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
if sudo mount -o loop -t iso9660 $1 "/media/$BASENAME"
then
rm -rf ~/.wine/dosdevices/d:
ln -s /media/$BASENAME ~/.wine/dosdevices/d:
#if zenity --question --title "ISO Mounter" --text "$BASENAME Successfully Mounted. Open Volume?"
#zenity --info --title "ISO Mounter" --text "$BASENAME Successfully Mounted."
echo "$BASENAME Successfully Mounted."
#then
#nautilus /media/"$BASENAME" --no-desktop
#fi
exit 0
else
sudo rmdir "/media/$BASENAME"
echo "Cannot mount $BASENAME!"
#zenity --error --title "ISO Mounter" --text "Cannot mount $BASENAME!"
exit 1
fi